Пример #1
0
 private void Awake()
 {
     //effs = transform.GetComponents<GameObject>();
     curEffName = new string[effs.Length];
     instance   = this;
 }
Пример #2
0
    //void OnApplicationQuit()
    //{

    //    instance = null;

    //}

    private void OnDestroy()
    {
        instance = null;
    }