public void StageStarting(State_LifeForm_Growing NewStage)
 {
     DeactivateAll();
     if (NewStage.StageNumber != deathStageNumber)
     {
         SetObjectIfPossible(NewStage.StageNumber);
     }
 }
예제 #2
0
    // Update is called once per frame
    void Update()
    {
        timer.Tick();

        // Cheat code

        if (Input.GetKey(KeyCode.P) && Input.GetKeyDown(KeyCode.K))
        {
            State_LifeForm_Growing GrowingState = stateMachine.GetState() as State_LifeForm_Growing;

            if (GrowingState != null)
            {
                GrowingState.HandlePuzzleCompleted(this);
            }
        }
    }
 public void ResetWithSource(State_LifeForm_Growing Source)
 {
     Reset();
 }