Пример #1
0
 public override void Action(UnitBase _base)
 {
     if (_base.SelfFunction)
     {
         _base.Action(this);
     }
 }
Пример #2
0
 public override void Action(UnitBase _base)
 {
     if (_base.SelfFunction)
     {
         _base.Action(this);
         return;
     }
     if (CanMove(_base))
     {
         //Debug.Log("enter");
         transform.position       += MoveDir;
         _base.transform.position += MoveDir;
         _base.curmoveTime         = 0;
     }
 }