コード例 #1
0
 void Start()
 {
     Instance     = this;
     currentLives = maxLives;
     DontDestroyOnLoad(gameObject);
     LivesUIController.Instance.Render(currentLives, maxLives);
 }
コード例 #2
0
ファイル: GameState.cs プロジェクト: Wumpf/grinchcommand
    private void Start()
    {
        playerLifeCounter = GetComponent <PlayerLifeCounter>();
        sledSpawner       = GetComponent <SledSpawner>();

        currentState = State.Intro;
        IntroScreen.SetActive(true);
    }