Пример #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(instance);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Пример #2
0
 void Start()
 {
     continueNumber             = GameObject.FindGameObjectWithTag("Continue").GetComponent <ContinueNumber>();
     continueNumber.levelNumber = index;
     continueNumber.New();
 }
Пример #3
0
 void Start()
 {
     continueNumber = GameObject.FindGameObjectWithTag("Continue").GetComponent <ContinueNumber>();
 }