Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        if (instance != null)
        {
            Debug.LogError("Already have an instance lol");
        }
        else
        {
            instance = this;
        }

        orbs = new List <GameObject>();
        foreach (Transform child in transform)
        {
            orbs.Add(child.gameObject);
        }
    }
Esempio n. 2
0
 void Awake()
 {
     Instance   = this;
     pooledOrbs = new List <GameObject>();
 }