コード例 #1
0
 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;
    }