void StartGlide() { Force.BackForce(this.gameObject, host.DirectionCurrent, speed, time); Illusion.Create(this.GetComponent <SpriteRenderer>(), time, (int)(speed * density)); host.LockMove.Register(codeSkill); host.LockAttack.Register(codeSkill); host.LockColliderTakeDamage.Register(codeSkill); Invoke("SkillComplete", time); }
protected virtual void VFXTookDamage(DamageData damadata) { Force.BackForce(gameObject, damadata.Direction, damadata.BackForce, 0.2f); }