Пример #1
0
        public void Start()
        {
            if (Instance != null)
            {
                Destroy(this);
                return;
            }

            Instance = this;
        }
Пример #2
0
 public void OnDestroy()
 {
     Instance = null;
 }