Exemplo n.º 1
0
        void UpdateTaskView()
        {
            ItemRoot.DestroyChildren();

            foreach (var timeTickTask in mAllTask)
            {
                UITimeTickTaskItem.InstantiateWithParent(ItemRoot)
                .Show()
                .GetILComponent <UITimeTickTaskItem>()
                .InitWithData(timeTickTask);
            }

            UITimeTickTaskItem.Hide();
        }
        public static void Start(ILKitBehaviour ilkitBehaviour)
        {
            var ilBehaviour = new UITimeTickTaskItem
            {
                transform     = ilkitBehaviour.transform,
                gameObject    = ilkitBehaviour.gameObject,
                MonoBehaviour = ilkitBehaviour
            };

            ilkitBehaviour.Script = ilBehaviour;

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

            ilkitBehaviour.OnDestroyAction += ilBehaviour.DestroyScript;
        }