public static SSPopAction GetSSAction(Stack <GameObject> target, GameObject obj)
    {
        SSPopAction action = ScriptableObject.CreateInstance <SSPopAction>();//让unity自己创建一个MoveToAction实例,并自己回收

        target.Push(obj);
        return(action);
    }
 public void offShip(GameObject role, Stack <GameObject> target)
 {
     moveRoleOffShip = SSPopAction.GetSSAction(target, role);
     this.RunAction(role, moveRoleOffShip, this);
 }