private IEnumerator CoPlayerHeal() { _player.Ready(); _player.Animator.Cast(); AudioController.instance.PlaySfx(AudioController.SfxCode.Heal); var buffRow = Game.instance.TableSheets.BuffSheet.Values.First(r => r.StatModifier.Value > 0 && r.StatModifier.StatType == StatType.HP); var buff = new HPBuff(buffRow); var castingEffect = Game.instance.Stage.BuffController.Get(_player.transform.position, buff); castingEffect.Play(); yield return(new WaitForSeconds(0.6f)); var effect = Game.instance.Stage.BuffController.Get <BuffVFX>(_player.gameObject, buff); effect.Play(); var position = _player.transform.TransformPoint(0f, 1.7f, 0f); var force = new Vector3(-0.1f, 0.5f); DamageText.Show(position, force, 64000.ToString(), DamageText.TextGroupState.Heal); yield return(new WaitForSeconds(1f)); _player.Animator.Idle(); yield return(new WaitForSeconds(1f)); }
public override Buff GetBuff() { Buff health = new HPBuff(150); return(new SpeedBuff(-10, health)); }