// direction skill public Action(Thing owner, DirectionSkill skill, Vector2 pos) { actionType = ActionType.DirectionSkill; this.owner = owner; directionSkill = skill; this.skill = skill; if (skill.useReletivePos) { targetPos = ((Vector3)pos - owner.transform.position).normalized; } else { targetPos = pos; } actionName = skill.skillName; }
public void SelectDirection(DirectionSkill skill) { mode = MouseMode.Direction; directionSkill = skill; }