Esempio n. 1
0
    /* interface methods */

    public override void Damage(DamageInfo info)
    {
        parameter.Damage(info);

        if (parameter.SuperArmerDamageLimit <= info.DamageValue())
        {
            // golem has super armer
            state.TryTransform(CharacterState.Hurt);
        }

        if (parameter.HitPoint <= 0)
        {
            gameController.NoticeKnockoutPlayer(networkView.owner);
        }
    }
Esempio n. 2
0
 public override void Damage(DamageInfo info)
 {
     hitPoint -= info.DamageValue();
 }