// Update is called once per frame
    void Update()
    {
        if (gameStarted && !gameSession.GetGoalProgressionStatus())//while the game has started and the target score hasn't been reached yet
        {
            if (Input.GetButtonDown("Pause"))
            {
                PauseUnpause();
            }                                                    //press Return to pause/unpause
        }

        else if (Input.GetButtonDown("Fire1"))
        {
            PlayGame();
        }                                                     //press the Fire button at the beginning to start the level
    }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (!session.GetGoalProgressionStatus())//while goal is not met
     {
         if (EnemySettings.GetSuicidal() && (EnemyData.GetHealth() <= EnemyData.GetHealthFormChange()))
         {
             KamiKaze();
         }
         //if the enemy is set as suicidal and it's health is below the changing form point, use the suicide path
         else
         {
             March();
         }            //use the normal path
     }
 }