public override void Action(UnitBase _base) { if (_base.SelfFunction) { _base.Action(this); } }
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; } }