Example #1
0
    void DoStun(int dmg, PlayerPunch punch)
    {
        state = ChinbaldState.Stunned;
        Invoke("Recover", 3);

        motor.DoStun();
        DoHurt(dmg, punch);
    }
Example #2
0
    void DoPunch()
    {
        state = ChinbaldState.Punch;
        sound.playPunch();
        // Assume we missed player
        missedPlayer = true;

        motor.DoPunch();
    }
Example #3
0
    void DoHurt(int dmg, PlayerPunch punch)
    {
        sound.playHurt();
        CamShake.AddTrauma(0.7f);

        motor.DoHurt(punch);
        healthpool -= dmg;
        healthBar.updateHealth(healthpool);
        if (healthpool <= 0)
        {
            GameController.controller.Win(4.0f);
            sound.playDeath();
            state = ChinbaldState.Dead;
            motor.DoDeath();
            player.BossDied();
        }
    }
Example #4
0
 void DoCower()
 {
     sound.playerCower();
     state = ChinbaldState.Cower;
     motor.DoCower();
 }
Example #5
0
 void DoIdle(float idle)
 {
     state = ChinbaldState.Idle;
     motor.DoIdle(idle);
 }
Example #6
0
 public override void PlayerDied()
 {
     Debug.Log("GAME OVER! PLAYER DIED");
     state = ChinbaldState.Victory;
 }