Пример #1
0
 void OnDestroy()
 {
     if (this == Instance)
     {
         Instance = null;
     }
 }
Пример #2
0
    public void Awake()
    {
        if (Instance)
        {
            Debug.Log("It's should be only one center camera on field");
            Destroy(this);
            return;
        }

        Instance = this;
        previousNormalizedSize = normalizedSize;
    }
Пример #3
0
 public void Awake()
 {
     Instance = this;
 }
Пример #4
0
        public void Awake()
        {
            if (Instance)
            {
                Debug.Log("It's should be only one center camera on field");
                Destroy(this);
                return;
            }

            Instance = this;
            previousNormalizedSize = normalizedSize;
        }
Пример #5
0
 void OnDestroy()
 {
     if (this == Instance)
     {
         Instance = null;
     }
 }