コード例 #1
0
    public static SSPushAction GetSSAction(Vector3 target)
    {
        SSPushAction action = ScriptableObject.CreateInstance <SSPushAction>();//让unity自己创建一个MoveToAction实例,并自己回收

        action.target = target;
        return(action);
    }
コード例 #2
0
 public void onShip(GameObject role, Vector3 end_pos)
 {
     moveRoleOnShip = SSPushAction.GetSSAction(end_pos);
     this.RunAction(role, moveRoleOnShip, this);
 }