Пример #1
0
    //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
 void Start()
 {
     _initializeLevel.Initialize();
     ShowExplanation1(true);
 }