// Use this for initialization
 protected void Start()
 {
     SceneController = (FirstController)SSDirector.GetInstance().CurrentSceneController;
     foreach (GameObject i in SceneController.Patrols)
     {
         action = PatrolAction.GetSSAction();
         this.RunAction(i, action, this);
     }
 }
 public void SSActionEvent(SSAction source, int intParam = 0, GameObject objectParam = null)
 {
     if (intParam == 0)
     {
         action = PatrolFollowAction.GetSSAction();
     }
     else if (intParam == 1)
     {
         action = PatrolAction.GetSSAction();
     }
     this.RunAction(objectParam, action, this);
 }
Beispiel #3
0
 public void beginPatrol(GameObject patrolman)
 {
     patrol = PatrolAction.GetSSAction(player);
     RunAction(patrolman, patrol, this);
 }