private void Start()
 {
     gm          = GameManager.instance;
     menu        = MenuController.instance;
     nameControl = EnterNameController.instance;
     highScores  = HighScoreController.instance;
 }
Пример #2
0
    void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(gameObject);
        }

        instance = this;
    }