Exemple #1
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        poolScript = GameObject.FindGameObjectWithTag("Data").GetComponent <PoolObjectScript>();
    }
    void Awake()
    {
        if (instance != null)
        {
            return;
        }

        instance = this;
    }
Exemple #3
0
 void Awake()
 {
     poolScript = GameObject.FindGameObjectWithTag("Data").GetComponent <PoolObjectScript>();
 }