|
@@ -135,162 +135,162 @@ public class Auxiliary : Regist
|
|
|
{
|
|
|
#region 调试
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.Escape))
|
|
|
- {
|
|
|
- SFSManager.GardenSmartFox.SmartFox.Disconnect();
|
|
|
- RobotManager.DeactivateAllRobots(false);
|
|
|
- }
|
|
|
+ //if (Input.GetKeyDown(KeyCode.Escape))
|
|
|
+ //{
|
|
|
+ // SFSManager.GardenSmartFox.SmartFox.Disconnect();
|
|
|
+ // RobotManager.DeactivateAllRobots(false);
|
|
|
+ //}
|
|
|
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.Space))
|
|
|
- {
|
|
|
- //ManaCenter.SaveTimer = 0;
|
|
|
-
|
|
|
- //URLRequestData urlData = new URLRequestData();
|
|
|
-
|
|
|
- //urlData.Add("u", "1704189794672324513");
|
|
|
- //urlData.Add("v", "10");
|
|
|
-
|
|
|
- //ManaData.SavePlayerConfig();
|
|
|
-
|
|
|
- //urlData.Add("l", ManaData.PlayerDoc.OuterXml);
|
|
|
-
|
|
|
- //URLRequest.CreateURLRequest(false, ManaServer.NewBaseURL + "/user/save", urlData, (data => Debug.Log(data.ToJson())), URLRequest.Method.POST);
|
|
|
- //RobotManager.AddRobot(SFSManager.GardenSmartFox.PlazaRoomManager.CurrentPlazaRoom.Id, 19, position, PlayerDirection.Left);
|
|
|
- //Resources.UnloadAsset(ManaReso.Get("U_LoadingPanel"));
|
|
|
- //foreach (var VARIABLE in ChestMge.PlazaRoomChests)
|
|
|
- //{
|
|
|
- // VARIABLE.ShadowSR.material = UnityFactory.Materials[0];
|
|
|
- // VARIABLE.ChestSR.material = UnityFactory.Materials[0];
|
|
|
- //}
|
|
|
-
|
|
|
- //ManaSocial.CloseCommentPanel();
|
|
|
- //Debug.LogWarning(ManaServer.SerialNumber);
|
|
|
- //SFSManager.GardenSmartFox.EventManager.PlazaRoomEvent.CheckDefaultRoomStatus(1);
|
|
|
- //ManaReso.Get<VerticalLayoutGroup>("R_Grid").CalculateLayoutInputVertical();
|
|
|
- //ManaReso.Get<VerticalLayoutGroup>("R_Grid").SetLayoutVertical();
|
|
|
- }
|
|
|
+ //if (Input.GetKeyDown(KeyCode.Space))
|
|
|
+ //{
|
|
|
+ // ManaCenter.SaveTimer = 0;
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.A))
|
|
|
- {
|
|
|
- URLRequestData urlData = new URLRequestData();
|
|
|
+ // URLRequestData urlData = new URLRequestData();
|
|
|
|
|
|
- urlData.Add("i", "");
|
|
|
+ // urlData.Add("u", "1704189794672324513");
|
|
|
+ // urlData.Add("v", "10");
|
|
|
|
|
|
- URLRequest.CreateURLRequest(false, ManaServer.NewBaseURL + "/user/rand", urlData, data => { Debug.Log(data.ToJson()); }, URLRequest.Method.POST);
|
|
|
+ // ManaData.SavePlayerConfig();
|
|
|
|
|
|
- //ManaSocial.UpdatePage(true);
|
|
|
- //PlazaRoomMge.DownloadRoomData(0);
|
|
|
- //DatabaseManager.GetRoomList(-1);
|
|
|
+ // urlData.Add("l", ManaData.PlayerDoc.OuterXml);
|
|
|
|
|
|
- //ManaServer.NotificationIndex = ManaData.GetPlayerInt("NotificationIndex") + 1;
|
|
|
- //ManaCenter.OfflineLock = true;
|
|
|
- //ManaSign.ShowOfflinePanel();
|
|
|
+ // URLRequest.CreateURLRequest(false, ManaServer.NewBaseURL + "/user/save", urlData, (data => Debug.Log(data.ToJson())), URLRequest.Method.POST);
|
|
|
+ // RobotManager.AddRobot(SFSManager.GardenSmartFox.PlazaRoomManager.CurrentPlazaRoom.Id, 19, position, PlayerDirection.Left);
|
|
|
+ // Resources.UnloadAsset(ManaReso.Get("U_LoadingPanel"));
|
|
|
+ // foreach (var VARIABLE in ChestMge.PlazaRoomChests)
|
|
|
+ // {
|
|
|
+ // VARIABLE.ShadowSR.material = UnityFactory.Materials[0];
|
|
|
+ // VARIABLE.ChestSR.material = UnityFactory.Materials[0];
|
|
|
+ // }
|
|
|
|
|
|
- //ManaTutorial.EnterC1();
|
|
|
- }
|
|
|
+ // ManaSocial.CloseCommentPanel();
|
|
|
+ // Debug.LogWarning(ManaServer.SerialNumber);
|
|
|
+ // SFSManager.GardenSmartFox.EventManager.PlazaRoomEvent.CheckDefaultRoomStatus(1);
|
|
|
+ // ManaReso.Get<VerticalLayoutGroup>("R_Grid").CalculateLayoutInputVertical();
|
|
|
+ // ManaReso.Get<VerticalLayoutGroup>("R_Grid").SetLayoutVertical();
|
|
|
+ //}
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.S))
|
|
|
- {
|
|
|
- ManaTutorial.EnterD1();
|
|
|
- }
|
|
|
+ //if (Input.GetKeyDown(KeyCode.A))
|
|
|
+ //{
|
|
|
+ // URLRequestData urlData = new URLRequestData();
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.D))
|
|
|
- {
|
|
|
- //SFSManager.GardenSmartFox.PlazaRoomManager.BeginEnterPlazaRoom();
|
|
|
- }
|
|
|
+ // urlData.Add("i", "");
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.Z))
|
|
|
- {
|
|
|
- //byte[] bytes = Encoding.UTF8.GetBytes(ManaData.PlayerDoc.OuterXml);
|
|
|
+ // URLRequest.CreateURLRequest(false, ManaServer.NewBaseURL + "/user/rand", urlData, data => { Debug.Log(data.ToJson()); }, URLRequest.Method.POST);
|
|
|
|
|
|
- //MD5 md5 = new MD5CryptoServiceProvider();
|
|
|
+ // ManaSocial.UpdatePage(true);
|
|
|
+ // PlazaRoomMge.DownloadRoomData(0);
|
|
|
+ // DatabaseManager.GetRoomList(-1);
|
|
|
|
|
|
- //PlayerPrefs.SetString("config", ToString(md5.ComputeHash(bytes)));
|
|
|
+ // ManaServer.NotificationIndex = ManaData.GetPlayerInt("NotificationIndex") + 1;
|
|
|
+ // ManaCenter.OfflineLock = true;
|
|
|
+ // ManaSign.ShowOfflinePanel();
|
|
|
|
|
|
- ManaCenter.MiniTimer = 0;
|
|
|
+ // ManaTutorial.EnterC1();
|
|
|
+ //}
|
|
|
|
|
|
- //GardenSmartFoxManager.GardenSmartFox.PlazaRoomManager.OnEnterPlazaRoomButton();
|
|
|
- }
|
|
|
+ //if (Input.GetKeyDown(KeyCode.S))
|
|
|
+ //{
|
|
|
+ // ManaTutorial.EnterD1();
|
|
|
+ //}
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.X))
|
|
|
- {
|
|
|
- //GardenSmartFoxManager.GardenSmartFox.ExtensionManager.PlazaRoomExtension.SendPublicMessage("123");
|
|
|
+ //if (Input.GetKeyDown(KeyCode.D))
|
|
|
+ //{
|
|
|
+ // SFSManager.GardenSmartFox.PlazaRoomManager.BeginEnterPlazaRoom();
|
|
|
+ //}
|
|
|
|
|
|
- //ManaPlayer.Player.PlayAnim("newAnimation");
|
|
|
+ //if (Input.GetKeyDown(KeyCode.Z))
|
|
|
+ //{
|
|
|
+ // byte[] bytes = Encoding.UTF8.GetBytes(ManaData.PlayerDoc.OuterXml);
|
|
|
|
|
|
- //StartCoroutine(ManaServer.DownloadAllAsset(new List<string>() { "http://or5zgoeui.bkt.clouddn.com/game_icon.png", "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3853411417,2245648913&fm=26&gp=0.jpg" }, ManaServer.DownloadAllTexture));
|
|
|
+ // MD5 md5 = new MD5CryptoServiceProvider();
|
|
|
|
|
|
- ManaMiniGame.GameTimer = 45;
|
|
|
+ // PlayerPrefs.SetString("config", ToString(md5.ComputeHash(bytes)));
|
|
|
|
|
|
- //Lottery.TempTypeList = new List<int>();
|
|
|
- //Lottery.TempValueList = new List<int>();
|
|
|
- //Lottery.TempLotteryList = new List<Lottery>();
|
|
|
+ // ManaCenter.MiniTimer = 0;
|
|
|
|
|
|
- //Lottery.EnterAnimation();
|
|
|
+ // GardenSmartFoxManager.GardenSmartFox.PlazaRoomManager.OnEnterPlazaRoomButton();
|
|
|
+ //}
|
|
|
|
|
|
- //ManaReso.Get("Bc_LotteryItem1").TweenForEuler();
|
|
|
- //ManaReso.Get("Bc_LotteryItem2").TweenForEuler();
|
|
|
- //ManaReso.Get("Bc_LotteryItem3").TweenForEuler();
|
|
|
- }
|
|
|
+ //if (Input.GetKeyDown(KeyCode.X))
|
|
|
+ //{
|
|
|
+ // GardenSmartFoxManager.GardenSmartFox.ExtensionManager.PlazaRoomExtension.SendPublicMessage("123");
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.C))
|
|
|
- {
|
|
|
- //GardenSmartFoxManager.GardenSmartFox.PlazaRoomManager.SendExpression(ExpressionID.郁闷);
|
|
|
+ // ManaPlayer.Player.PlayAnim("newAnimation");
|
|
|
|
|
|
- //SFSObject sfsObject = new SFSObject();
|
|
|
- //sfsObject.PutInt(DataID.SenderID.GetHashString(), 0);
|
|
|
- //sfsObject.PutText(DataID.Message.GetHashString(), "123");
|
|
|
+ // StartCoroutine(ManaServer.DownloadAllAsset(new List<string>() { "http://or5zgoeui.bkt.clouddn.com/game_icon.png", "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3853411417,2245648913&fm=26&gp=0.jpg" }, ManaServer.DownloadAllTexture));
|
|
|
|
|
|
- //SFSObject parameter = GardenSmartFox.ConstructCommandParameter(CommandID.ReceivePublicMessage.GetHashCode(), sfsObject, -1);
|
|
|
+ // ManaMiniGame.GameTimer = 45;
|
|
|
|
|
|
- //GardenSmartFoxManager.GardenSmartFox.AddRequest(parameter, RequestType.Immediate);
|
|
|
+ // Lottery.TempTypeList = new List<int>();
|
|
|
+ // Lottery.TempValueList = new List<int>();
|
|
|
+ // Lottery.TempLotteryList = new List<Lottery>();
|
|
|
|
|
|
- //GardenSmartFoxManager.GardenSmartFox.SmartFox.Send(new ExtensionRequest("0", sfsObject));
|
|
|
+ // Lottery.EnterAnimation();
|
|
|
|
|
|
- //ManaPlayer.Player.PlayAnim("newAnimation1");
|
|
|
+ // ManaReso.Get("Bc_LotteryItem1").TweenForEuler();
|
|
|
+ // ManaReso.Get("Bc_LotteryItem2").TweenForEuler();
|
|
|
+ // ManaReso.Get("Bc_LotteryItem3").TweenForEuler();
|
|
|
+ //}
|
|
|
|
|
|
- //ManaReso.Get("C_Notify").TweenForCG();
|
|
|
+ //if (Input.GetKeyDown(KeyCode.C))
|
|
|
+ //{
|
|
|
+ // GardenSmartFoxManager.GardenSmartFox.PlazaRoomManager.SendExpression(ExpressionID.郁闷);
|
|
|
|
|
|
- ManaMiniGame.Score += 400;
|
|
|
+ // SFSObject sfsObject = new SFSObject();
|
|
|
+ // sfsObject.PutInt(DataID.SenderID.GetHashString(), 0);
|
|
|
+ // sfsObject.PutText(DataID.Message.GetHashString(), "123");
|
|
|
|
|
|
- //ManaSign.SignTime = new DateTime(2007, 1, 1);
|
|
|
- }
|
|
|
+ // SFSObject parameter = GardenSmartFox.ConstructCommandParameter(CommandID.ReceivePublicMessage.GetHashCode(), sfsObject, -1);
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.V))
|
|
|
- {
|
|
|
- //ManaData.PlayerDoc.SelectSingleNode("PlayerConfig").SelectSingleNode("Version").Attributes[0].Value = 6.ToString();
|
|
|
- //ManaData.PlayerNode.RemoveChild(ManaData.PlayerNode.SelectSingleNode("FlowerAmtList"));
|
|
|
+ // GardenSmartFoxManager.GardenSmartFox.AddRequest(parameter, RequestType.Immediate);
|
|
|
|
|
|
- Debug.Log(ManaData.GetPlayerString("FlowerList"));
|
|
|
- Debug.Log(ManaData.GetPlayerString("FlowerAmtList"));
|
|
|
+ // GardenSmartFoxManager.GardenSmartFox.SmartFox.Send(new ExtensionRequest("0", sfsObject));
|
|
|
|
|
|
- //ManaPlayer.Player.PlayAnim("newAnimation2");
|
|
|
+ // ManaPlayer.Player.PlayAnim("newAnimation1");
|
|
|
|
|
|
- //ManaPlayer.Player.Flip(PlayerDirection.Right);
|
|
|
+ // ManaReso.Get("C_Notify").TweenForCG();
|
|
|
|
|
|
- //ManaServer.MailReward mailReward = new ManaServer.MailReward("1", "pack", "4");
|
|
|
- //ManaServer.MailReward mailReward1 = new ManaServer.MailReward("1", "close", "2");
|
|
|
+ // ManaMiniGame.Score += 400;
|
|
|
|
|
|
- //ManaServer.GetMainReward(mailReward);
|
|
|
- //ManaServer.GetMainReward(mailReward1);
|
|
|
+ // ManaSign.SignTime = new DateTime(2007, 1, 1);
|
|
|
+ //}
|
|
|
|
|
|
- //ManaGarden.ElfTimer = 0;
|
|
|
+ //if (Input.GetKeyDown(KeyCode.V))
|
|
|
+ //{
|
|
|
+ // ManaData.PlayerDoc.SelectSingleNode("PlayerConfig").SelectSingleNode("Version").Attributes[0].Value = 6.ToString();
|
|
|
+ // ManaData.PlayerNode.RemoveChild(ManaData.PlayerNode.SelectSingleNode("FlowerAmtList"));
|
|
|
|
|
|
- //ManaServer.Time = new DateTime(2007, 1, 1);
|
|
|
- }
|
|
|
+ // Debug.Log(ManaData.GetPlayerString("FlowerList"));
|
|
|
+ // Debug.Log(ManaData.GetPlayerString("FlowerAmtList"));
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.B))
|
|
|
- {
|
|
|
- //ManaPlayer.Player.PlayAnim("newAnimation3");
|
|
|
+ // ManaPlayer.Player.PlayAnim("newAnimation2");
|
|
|
|
|
|
- //ManaPlayer.Player.Flip(PlayerDirection.Left);
|
|
|
+ // ManaPlayer.Player.Flip(PlayerDirection.Right);
|
|
|
|
|
|
- //foreach (var VARIABLE in ManaPlayer.CloseUnitDic)
|
|
|
- //{
|
|
|
- // VARIABLE.Value.Unlock();
|
|
|
- //}
|
|
|
- }
|
|
|
+ // ManaServer.MailReward mailReward = new ManaServer.MailReward("1", "pack", "4");
|
|
|
+ // ManaServer.MailReward mailReward1 = new ManaServer.MailReward("1", "close", "2");
|
|
|
+
|
|
|
+ // ManaServer.GetMainReward(mailReward);
|
|
|
+ // ManaServer.GetMainReward(mailReward1);
|
|
|
+
|
|
|
+ // ManaGarden.ElfTimer = 0;
|
|
|
+
|
|
|
+ // ManaServer.Time = new DateTime(2007, 1, 1);
|
|
|
+ //}
|
|
|
+
|
|
|
+ //if (Input.GetKeyDown(KeyCode.B))
|
|
|
+ //{
|
|
|
+ // ManaPlayer.Player.PlayAnim("newAnimation3");
|
|
|
+
|
|
|
+ // ManaPlayer.Player.Flip(PlayerDirection.Left);
|
|
|
+
|
|
|
+ // foreach (var VARIABLE in ManaPlayer.CloseUnitDic)
|
|
|
+ // {
|
|
|
+ // VARIABLE.Value.Unlock();
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//if (Input.GetKeyDown(KeyCode.M))
|
|
|
//{
|