Пример #1
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
         DontDestroyOnLoad (this);
     } else {
         Destroy (gameObject);
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     ScoreController.GetInstance().Reset();
     NewWave();
 }