public PhysicsMoveToAction ApplyMoveToAction(GameObject obj, float speed) { PhysicsMoveToAction temp = PhysicsMoveToAction.GetSSAction(speed); base.RunAction(obj, temp, this); return(temp); }
public static PhysicsMoveToAction GetSSAction(float _speed) { PhysicsMoveToAction act = ScriptableObject.CreateInstance <PhysicsMoveToAction> (); act.speed = _speed; act.originPosition = SSAction.getRandomStartPoint(); return(act); }
public PhysicsMoveToAction ApplyMoveToAction(GameObject obj, float speed) { PhysicsMoveToAction action = PhysicsMoveToAction.GetSSAction(speed); base.RunAction(obj, action, this); return(action); }