コード例 #1
0
 // 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;
 }
コード例 #2
0
 public void SelectDirection(DirectionSkill skill)
 {
     mode           = MouseMode.Direction;
     directionSkill = skill;
 }