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

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