public override void InitWindowOnAwake() { InitWindowCoreData(); base.InitWindowOnAwake(); itemsGrid = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain/Scroll View/Grid"); trsAnimation = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain"); scrollView = GameUtility.FindDeepChild <UIScrollView>(this.gameObject, "LeftAnchor/LeftMain/Scroll View"); btnGoToMatch = GameUtility.FindDeepChild(this.gameObject, "Btn_GotoMatch").gameObject; rankWindowManager = this.gameObject.GetComponent <UIRankManager>(); if (rankWindowManager == null) { rankWindowManager = this.gameObject.AddComponent <UIRankManager>(); rankWindowManager.InitWindowManager(); } // Just go to Game scene logic UIEventListener.Get(btnGoToMatch).onClick = delegate { GameMonoHelper.GetInstance().LoadGameScene("RealGame-AnimationCurve", false, delegate { UICenterMasterManager.Instance.ShowWindow(WindowID.WindowID_Matching); UICenterMasterManager.Instance.GetGameWindowScript <UIMatching>(WindowID.WindowID_Matching).SetMatchingData(this.ID); }); }; }
public override void InitWindowOnAwake() { InitWindowCoreData(); base.InitWindowOnAwake(); itemsGrid = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain/Scroll View/Grid"); trsAnimation = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain"); scrollView = GameUtility.FindDeepChild<UIScrollView>(this.gameObject, "LeftAnchor/LeftMain/Scroll View"); btnGoToMatch = GameUtility.FindDeepChild(this.gameObject, "Btn_GotoMatch").gameObject; rankWindowManager = this.gameObject.GetComponent<UIRankManager>(); if (rankWindowManager == null) { rankWindowManager = this.gameObject.AddComponent<UIRankManager>(); rankWindowManager.InitWindowManager(); } // Just go to Game scene logic UIEventListener.Get(btnGoToMatch).onClick = delegate { GameMonoHelper.GetInstance().LoadGameScene("RealGame-AnimationCurve", false, delegate { UICenterMasterManager.Instance.ShowWindow(WindowID.WindowID_Matching); UICenterMasterManager.Instance.GetGameWindowScript<UIMatching>(WindowID.WindowID_Matching).SetMatchingData(this.ID); }); }; }
public override void InitWindowOnAwake() { this.windowID = WindowID.WindowID_Rank; this.preWindowID = WindowID.WindowID_MainMenu; InitWindowData(); base.InitWindowOnAwake(); // this.RegisterReturnLogic(RetrunPreLogic); objEffect = GameUtility.FindDeepChild(this.gameObject, "EffectParent"); itemsGrid = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain/Scroll View/Grid"); trsAnimation = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain"); scrollView = GameUtility.FindDeepChild<UIScrollView>(this.gameObject, "LeftAnchor/LeftMain/Scroll View"); btnGoToMatch = GameUtility.FindDeepChild(this.gameObject, "Btn_GotoMatch").gameObject; rankWindowManager = this.gameObject.GetComponent<UIRankManager>(); if (rankWindowManager == null) { rankWindowManager = this.gameObject.AddComponent<UIRankManager>(); rankWindowManager.InitWindowManager(); } UIEventListener.Get(btnGoToMatch).onClick = delegate { GameMonoHelper.GetInstance().LoadGameScene("AnimationCurve", delegate { UIManager.GetInstance().ShowWindow(WindowID.WindowID_Matching); UIManager.GetInstance().GetGameWindowScript<UIMatching>(WindowID.WindowID_Matching).SetMatchingData(this.windowID); }); }; }
public override void InitWindowOnAwake() { this.windowID = WindowID.WindowID_Rank; this.preWindowID = WindowID.WindowID_MainMenu; InitWindowData(); base.InitWindowOnAwake(); // this.RegisterReturnLogic(RetrunPreLogic); objEffect = GameUtility.FindDeepChild(this.gameObject, "EffectParent"); itemsGrid = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain/Scroll View/Grid"); trsAnimation = GameUtility.FindDeepChild(this.gameObject, "LeftAnchor/LeftMain"); scrollView = GameUtility.FindDeepChild <UIScrollView>(this.gameObject, "LeftAnchor/LeftMain/Scroll View"); btnGoToMatch = GameUtility.FindDeepChild(this.gameObject, "Btn_GotoMatch").gameObject; rankWindowManager = this.gameObject.GetComponent <UIRankManager>(); if (rankWindowManager == null) { rankWindowManager = this.gameObject.AddComponent <UIRankManager>(); rankWindowManager.InitWindowManager(); } UIEventListener.Get(btnGoToMatch).onClick = delegate { GameMonoHelper.GetInstance().LoadGameScene("AnimationCurve", delegate { UIManager.GetInstance().ShowWindow(WindowID.WindowID_Matching); UIManager.GetInstance().GetGameWindowScript <UIMatching>(WindowID.WindowID_Matching).SetMatchingData(this.windowID); }); }; }