Example #1
0
        public void InitAssembleModel(string modelPath)
        {
            UIUtility.SafeSetActive(AssembleContainer, true);
            var Obj = ObjectManager.Instance.InstantiateObject("Assets/" + modelPath + ".prefab");

            if (Obj != null)
            {
                Obj.transform.SetParent(AssembleContainerContentTrans, false);
            }
        }
Example #2
0
        protected override void Awake()
        {
            base.Awake();
            GameManager.Instance.InitBaseData();
            MainShipAreaContainer         = transform.FindTransfrom("MainShipAreaContainer");
            AssembleContainer             = transform.FindTransfrom("AssembleContainer");
            AssembleContainerContentTrans = AssembleContainer.FindTransfrom("Content");

            UIUtility.SafeSetActive(ContentObj, false);
            UIUtility.SafeSetActive(AssembleContainer, false);
        }