コード例 #1
0
 // starts the Stun Animation
 public override void BeginStun(EnumEntityStunType stun, EnumBodyPartHit _bodyPart, Utils.EnumHitDirection _hitDirection, bool _criticalHit,
                                float random)
 {
     SetRandomIndex("StunIndex");
     base.BeginStun(stun, _bodyPart, _hitDirection, _criticalHit, random);
 }
コード例 #2
0
 public override void BeginStun(EnumEntityStunType stun, EnumBodyPartHit _bodyPart, Utils.EnumHitDirection _hitDirection, bool _criticalHit, float random)
 {
     SetRandomIndex("StunIndex");
     SetBool("IsStunned", true);
 }
コード例 #3
0
    public override void BeginStun(EnumEntityStunType stun, EnumBodyPartHit _bodyPart, Utils.EnumHitDirection _hitDirection, bool _criticalHit, float random)
    {
        this.SetRandomIndex("StunIndex");
        this.SetBool("IsStunned", true);

        this.SetInt("StunType", (int)stun);
        this.SetInt("StunBodyPart", (int)_bodyPart);
        this.SetInt("HitDirection", (int)_hitDirection);
        this.SetBool("isCritical", _criticalHit);
        this.SetFloat("HitRandomValue", random);
        this.SetTrigger("BeginStunTrigger");
        this.ResetTrigger("EndStunTrigger");
    }