コード例 #1
0
ファイル: StartMenuControl.cs プロジェクト: MrLoog/LChess
    void Awake()
    {
        if (Instance != null && Instance != this)
        {
            Destroy(gameObject);
        }
        else
        {
            Instance = this;
        }

        DontDestroyOnLoad(gameObject);
    }
コード例 #2
0
ファイル: StartMenuControl.cs プロジェクト: RealLucas/Dusty2
 private void Awake()
 {
     _instance = this;
 }