Ejemplo n.º 1
0
 // Use this for initialization
 protected void Start()
 {
     SceneController = (FirstController)SSDirector.GetInstance().CurrentSceneController;
     foreach (GameObject i in SceneController.tanks)
     {
         action = TankIdealAction.GetSSAction();
         this.RunAction(i, action, this);
     }
 }
Ejemplo n.º 2
0
 public void SSActionEvent(SSAction source, int intParam = 0, GameObject objectParam = null)
 {
     if (intParam == 0)
     {
         action = TankFollowAction.GetSSAction();
         this.RunAction(objectParam, action, this);
     }
     else if (intParam == 1)
     {
         action = TankIdealAction.GetSSAction();
         this.RunAction(objectParam, action, this);
     }
 }
Ejemplo n.º 3
0
    public static TankIdealAction GetSSAction()
    {
        TankIdealAction action = ScriptableObject.CreateInstance <TankIdealAction>();

        return(action);
    }