Пример #1
0
 void ClearBinds()
 {
     BtnCreateA         = null;
     BtnCreateB         = null;
     BtnCreateC         = null;
     ItemRoot           = null;
     UITimeTickTaskItem = null;
 }
Пример #2
0
 void SetupBinds()
 {
     BtnCreateA         = transform.Find("BtnCreateA").GetComponent <UnityEngine.UI.Button>();
     BtnCreateB         = transform.Find("BtnCreateB").GetComponent <UnityEngine.UI.Button>();
     BtnCreateC         = transform.Find("BtnCreateC").GetComponent <UnityEngine.UI.Button>();
     ItemRoot           = transform.Find("Scroll View/Viewport/ItemRoot").GetComponent <UnityEngine.RectTransform>();
     UITimeTickTaskItem = transform.Find("UITimeTickTaskItem").GetComponent <QFramework.ILKitBehaviour>();
 }
Пример #3
0
 void ClearBinds()
 {
     MainCamera = null;
     LogoName   = null;
     MenuUI     = null;
     GameUI     = null;
     SettingUI  = null;
     RankUI     = null;
     GameOverUI = null;
 }
Пример #4
0
 void SetupBinds()
 {
     MainCamera = transform.Find("MainCamera").GetComponent <UnityEngine.Camera>();
     LogoName   = transform.Find("LogoName").GetComponent <UnityEngine.RectTransform>();
     MenuUI     = transform.Find("MenuUI").GetComponent <QFramework.ILKitBehaviour>();
     GameUI     = transform.Find("GameUI").GetComponent <QFramework.ILKitBehaviour>();
     SettingUI  = transform.Find("SettingUI").GetComponent <QFramework.ILKitBehaviour>();
     RankUI     = transform.Find("RankUI").GetComponent <QFramework.ILKitBehaviour>();
     GameOverUI = transform.Find("GameOverUI").GetComponent <QFramework.ILKitBehaviour>();
 }
Пример #5
0
        void DestroyScript()
        {
            ClearBinds();

            transform     = null;
            gameObject    = null;
            MonoBehaviour = null;

            OnDestroy();
        }
Пример #6
0
        public static void Start(ILKitBehaviour ilkitBehaviour)
        {
            var ilBehaviour = new ILUIPanelTester
            {
                transform     = ilkitBehaviour.transform,
                gameObject    = ilkitBehaviour.gameObject,
                MonoBehaviour = ilkitBehaviour
            };

            ilkitBehaviour.Script = ilBehaviour;

            ilBehaviour.SetupBinds();
            ilBehaviour.OnStart();

            ilkitBehaviour.OnDestroyAction += ilBehaviour.DestroyScript;
        }