private void Start()
        {
            border.color = GameController.WheelStrokeColor;
            GameController gameController = GameController.instance;

            gameController.onNewGame = (GameController.SendGame)Delegate.Combine(gameController.onNewGame, new GameController.SendGame(handleNewGame));
            WheelController wheelController = WheelController.instance;

            wheelController.onWheelCreated = (WheelController.NoParam)Delegate.Combine(wheelController.onWheelCreated, new WheelController.NoParam(handleWheelCreated));
        }
        private void Start()
        {
            GameController gameController = GameController.instance;

            gameController.onGameEnd = (GameController.SendGame)Delegate.Combine(gameController.onGameEnd, new GameController.SendGame(handleGameEnd));
            GameController gameController2 = GameController.instance;

            gameController2.onNewGame = (GameController.SendGame)Delegate.Combine(gameController2.onNewGame, new GameController.SendGame(handleNewGame));
            GameController gameController3 = GameController.instance;

            gameController3.onTournamentEnd = (GameController.SendGame)Delegate.Combine(gameController3.onTournamentEnd, new GameController.SendGame(handleGameEnd));
            WheelController wheelController = WheelController.instance;

            wheelController.onWheelCreated = (WheelController.NoParam)Delegate.Combine(wheelController.onWheelCreated, new WheelController.NoParam(handleWheelCreated));
            enable();
        }
Exemple #3
0
 private void Awake()
 {
     instance = this;
 }