Exemple #1
0
 public static void StartListener(string name, UnityAction action)
 {
     if (!AddListener(name, action))
     {
         GameEvent gameEvent = new GameEvent();
         gameEvent.Add(action);
         AddEvent(name, gameEvent);
     }
 }
    private static void Register(GameMoudle moudle)
    {
        Controller controller = ControllerManager.GetController(moudle);
        GameEvent  gameEvent  = new GameEvent();

        foreach (GameEvent.Type type in controller.EventList)
        {
            gameEvent.Add(type, controller.GetEvent(type));
        }
        dicMoudleEvent.Add(moudle, gameEvent);
    }
Exemple #3
0
    public IterationResult Send(GameEvent Event, bool UpdateOfEnvironment = true)
    {
        if (!Enabled)
        {
            return(new IterationResult(null));
        }

        if (UpdateOfEnvironment)
        {
            Event.Add(GetAllEnvironmentalChanges());
        }

        return(evalService_.Send(Event));
    }
Exemple #4
0
 void OnEnable()
 {
     loss.Add(Lose);
     win.Add(Win);
 }
Exemple #5
0
 void OnEnable()
 {
     serveCall.Add(Stop);
     win.Add(Stop);
     lose.Add(Stop);
 }
Exemple #6
0
 void OnEnable()
 {
     lose.Add(Reset);
 }
Exemple #7
0
 void OnEnable()
 {
     serveCall.Add(SetServe);
 }
Exemple #8
0
 void OnEnable()
 {
     win.Add(LevelOver);
 }
Exemple #9
0
 void OnEnable()
 {
     serveCall.Add(SetServe);
     win.Add(Stop);
     loss.Add(Stop);
 }
 void OnEnable()
 {
     win.Add(Stop);
     lose.Add(Stop);
 }