コード例 #1
0
ファイル: DCreateCoin.cs プロジェクト: dabinl1258/dragon
	// Use this for initialization
	void Start () {
        instance = this;
        objectPool = new DObjectPool[coinArray.Length];
        for (int i = 0; i < coinArray.Length; i++)
        {
            objectPool[i] = new DObjectPool(coinArray[i].gameObject,0);
        }
        for (int i = 0; i < coinArray.Length; i++)
        {
            for (int j = 0; j < 10; j++)
            {
                objectPool[i].GetAble().SetActive(false);
            }

        }
	}
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     instance   = this;
     objectPool = new DObjectPool[coinArray.Length];
     for (int i = 0; i < coinArray.Length; i++)
     {
         objectPool[i] = new DObjectPool(coinArray[i].gameObject, 0);
     }
     for (int i = 0; i < coinArray.Length; i++)
     {
         for (int j = 0; j < 10; j++)
         {
             objectPool[i].GetAble().SetActive(false);
         }
     }
 }