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));
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 private void Awake()
 {
     instance = this;
 }