Beispiel #1
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);
            }

        }
	}
Beispiel #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);
         }
     }
 }