Esempio n. 1
0
    private void Awake()
    {
        _instance = this;
        int tempCount = rawIndex.Count;

        for (int i = 0; i < tempCount; i++)
        {
            int tempIndex = Random.Range(0, rawIndex.Count);
            usingIndex.Add(rawIndex[tempIndex]);
            rawIndex.RemoveAt(tempIndex);
        }

        foreach (Transform t in GameObject.Find("Maze").transform)
        {
            pacdotGos.Add(t.gameObject);
        }

        pacdotNumber = GameObject.Find("Maze").transform.childCount;

        //since the StartScene has destroyed, must reset the callback here.
        CelerX.SetCallback(this);
    }
 public void Awake()
 {
     CelerX.SetCallback(this);
 }