protected new void Update() { if (sceneController.state && start) { for (int i = 0; i < 6; i++) { move = PatrolGo.GetSSAction(); this.RunAction(sceneController.patrol.getPatrol(i.ToString()).patrol, move, this); } start = false; } if (!sceneController.state) { start = true; } base.Update(); }
public static PatrolGo GetSSAction() { PatrolGo action = ScriptableObject.CreateInstance <PatrolGo>(); return(action); }