示例#1
0
 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();
 }
示例#2
0
文件: PatrolGo.cs 项目: SO4P/Unity6
    public static PatrolGo GetSSAction()
    {
        PatrolGo action = ScriptableObject.CreateInstance <PatrolGo>();

        return(action);
    }