Пример #1
0
//		new void Awake(){
//			mapItemAnimator = GetComponent<Animator> ();
//
//			mapItemRenderer = GetComponent<SpriteRenderer> ();
//
//			bc2d = GetComponent<BoxCollider2D> ();
//			this.range = new Vector2 (10, 10);
//			this.towards = MyTowards.Right;
//			bulletPool = InstancePool.GetOrCreateInstancePool ("BulletPool", CommonData.poolContainerName);
//			SetUpLauncher ();
//		}

        public override void InitMapItem()
        {
            bc2d.enabled = true;
            SetUpLauncher();
            SetSortingOrder(-(int)transform.position.y);
            bulletPool = InstancePool.GetOrCreateInstancePool("BulletPool", CommonData.poolContainerName);
        }
Пример #2
0
        void Awake()
        {
            Transform poolContainerOfBagCanvas = TransformManager.FindOrCreateTransform(CommonData.poolContainerName + "/PoolContainerOfBagCanvas");

            //创建缓存池
            bagItemsPool = InstancePool.GetOrCreateInstancePool("BagItemsPool", poolContainerOfBagCanvas.name);
        }
Пример #3
0
        /// <summary>
        /// 初始化记录页面
        /// </summary>
        /// <param name="learnInfo">Learn info.</param>
        /// <param name="tabIndex">选项卡序号 【0:基本信息 1:错误单词】.</param>
        public void SetUpRecordView(LearningInfo learnInfo)
        {
            this.learnInfo = learnInfo;

            // 创建缓存池
            wordPool = InstancePool.GetOrCreateInstancePool("WordItemPool", CommonData.poolContainerName);

            SetUpGeneralLearningInfo();

            GetComponent <Canvas>().enabled = true;
        }
Пример #4
0
        public void InitLearnView(int totalWordsCount)
        {
            crystalHarvestCount.text = "0";

            UpdateLearningProgress(0, totalWordsCount, false);

            totalTurnCount = 0;

            isShowRightAnswerFinished = true;

            crystalPool = InstancePool.GetOrCreateInstancePool("CrystalPool", CommonData.poolContainerName);

            SetUpBasicInformation();
        }
 public void InitExploreAgentView()
 {
     statusTintPool = InstancePool.GetOrCreateInstancePool("StatusTintPool", CommonData.exploreScenePoolContainerName);
     fightTextPool  = InstancePool.GetOrCreateInstancePool("FightTextPool", CommonData.exploreScenePoolContainerName);
     fightTextManager.InitFightTextManager(fightTextPool, fightTextModel, fightTextContainer);
 }
Пример #6
0
 void Awake()
 {
     recipesItemPool = InstancePool.GetOrCreateInstancePool("RecipesItemPool", CommonData.bagCanvasPoolContainerName);
 }
 void Awake()
 {
     this.choiceButtonPool = InstancePool.GetOrCreateInstancePool("NPCChoiceButtonPool", CommonData.exploreScenePoolContainerName);
     this.goodsPool        = InstancePool.GetOrCreateInstancePool("NPCGoodsPool", CommonData.exploreScenePoolContainerName);
 }
 void Awake()
 {
     consumablesButtonPool = InstancePool.GetOrCreateInstancePool("ConsumablesButtonPool", CommonData.exploreScenePoolContainerName);
 }
 public void InitUnlockedItemView()
 {
     unlockedItemsPool = InstancePool.GetOrCreateInstancePool("UnlockedItemPool", CommonData.poolContainerName);
 }
 public void InitCharactersInBagHUD()
 {
     characterPool = InstancePool.GetOrCreateInstancePool("CharacterPool", CommonData.poolContainerName);
 }