Exemplo n.º 1
0
 public static void add(IGameControlProxy obj)
 {
     AwakeProxy += new AwakeHandler(obj.awake);
     StartProxy += new StartHandler(obj.start);
     FixUpdateProxy += new FixUpdateHandler(obj.fixedupdate);
     UpdateProxy += new UpdateHandler(obj.update);
     LateUpdateProxy += new LateUpdateHandler(obj.lateupdate);
     OnGUIProxy += new OnGUIHandler(obj.onGUI);
     changedTurnStateProxy += new changedTurnStateHandler(obj.changedTurnState);
     changedGameStateProxy += new changedGameStateHandler(obj.changedGameState);
     changedFieldModeProxy += new changedFiledModeHandler(obj.changedFieldMode);
 }
Exemplo n.º 2
0
 //public static List<IGameControlProxy> addlist = new List<IGameControlProxy>(8);
 //public static List<IGameControlProxy> list = new List<IGameControlProxy>(8);
 void Awake()
 {
     AwakeProxy += new AwakeHandler(Dummy);
     StartProxy += new StartHandler(Dummy);
     FixUpdateProxy += new FixUpdateHandler(Dummy);
     UpdateProxy += new UpdateHandler(Dummy);
     LateUpdateProxy += new LateUpdateHandler(Dummy);
     OnGUIProxy += new OnGUIHandler(Dummy);
     changedTurnStateProxy += new changedTurnStateHandler(Dummy);
     changedGameStateProxy += new changedGameStateHandler(Dummy);
     changedFieldModeProxy += new changedFiledModeHandler(Dummy);
     if (gameController==null) gameController =  new GameController();
     AwakeProxy();
     //GameController.gameStateChange(GameController.GameState.PRELOAD);
     GameObject.DontDestroyOnLoad(this);
     Instance = this;
 }