Пример #1
0
    private void Awake()
    {
        #region Singleton

        if (instance == null)
        {
            instance = this;
        }
        else
        {
            print("Reworked Network Viewer already exist on " + gameObject.name);
            print("Destroying version on " + gameObject.name);
            Destroy(this);
        }

        #endregion
    }
Пример #2
0
 private void Awake()
 {
     instance = this;
 }