public override void OnPrintEffect(BattleDiceBehavior behavior) { if (this._hit) { if ((UnityEngine.Object) this._effect != (UnityEngine.Object)null) { this._effect.SetTrigger("Hit"); } --this._hitCount; if (this._hitCount == 0) { this._hit = false; } } if (!this._destroy) { return; } this._destroy = false; if ((UnityEngine.Object) this._effect != (UnityEngine.Object)null) { this._effect.SetTrigger("Disappear"); } this._effect = (CreatureEffect_Anim)null; }
public override void OnSelectEmotion() { try { this._effect = this.MakeEffect("1/Fairy_Gluttony") as CreatureEffect_Anim; this._effect?.SetLayer("Character"); SingletonBehavior <SoundEffectManager> .Instance.PlayClip("Creature/Fariy_Special")?.SetGlobalPosition(this._owner.view.WorldPosition); } catch { } }
public override void OnRoundEnd() { if (this._count < 3) { int num = Mathf.Min((int)((double)this._owner.MaxHp * 0.2), 24); this._owner.RecoverHP(num); ++this._count; if ((UnityEngine.Object) this._effect != (UnityEngine.Object)null) { this._effect.SetTrigger("Recover"); } } if (this._count != 3) { return; } if ((UnityEngine.Object) this._effect != (UnityEngine.Object)null) { this._effect.SetTrigger("Disappear"); } this._effect = (CreatureEffect_Anim)null; }