Esempio n. 1
0
    private void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(gameObject);
            return;
        }

        instance = this;
        FillPool();
    }
Esempio n. 2
0
 private void Awake()
 {
     _Instance      = this;
     poolDictionary = new Dictionary <string, Pool>();
 }