コード例 #1
0
ファイル: GameManager.cs プロジェクト: Voxiit/XtraLifeTest
    //Singleton
    //private static GameManager Instance = null;

    //Functions

    /*
     * void Awake()
     * {
     *  // if the singleton hasn't been initialized yet
     *  if (Instance != null && Instance != this)
     *  {
     *      Destroy(this.gameObject);
     *  }
     *  else
     *  {
     *      Instance = this;
     *      DontDestroyOnLoad(this.gameObject);
     *  }
     * }
     */


    void Start()
    {
        Grabber.PlayerWin     += Win;
        CotcManager.StartGame += BeginPlay;
        CotcManager.Logout    += Restart;
        _initializeLevel.Initialize();
    }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: Voxiit/HurryOffice
 void Start()
 {
     _initializeLevel.Initialize();
     ShowExplanation1(true);
 }