Пример #1
0
    private void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(gameObject);
            return;
        }

        instance = this;
        FillPool();
    }
Пример #2
0
 private void Awake()
 {
     _Instance      = this;
     poolDictionary = new Dictionary <string, Pool>();
 }