private void Start()
        {
            Writer writer = Writer.instance;

            writer.onLetterAdd = (Writer.SendLetter)Delegate.Combine(writer.onLetterAdd, new Writer.SendLetter(handleLetterAdd));
            Writer writer2 = Writer.instance;

            writer2.onLetterRemoved = (Writer.SendCouple)Delegate.Combine(writer2.onLetterRemoved, new Writer.SendCouple(handleLetterRemove));
            WordController wordController = WordController.instance;

            wordController.onWordFound = (WordController.OnWordFound)Delegate.Combine(wordController.onWordFound, new WordController.OnWordFound(handleWordFound));
            WordController wordController2 = WordController.instance;

            wordController2.onSameFound = (WordController.OnWordFound)Delegate.Combine(wordController2.onSameFound, new WordController.OnWordFound(handleSameFound));
            WordController wordController3 = WordController.instance;

            wordController3.onExtraFound = (WordController.OnExtraFound)Delegate.Combine(wordController3.onExtraFound, new WordController.OnExtraFound(handleExtraFound));
            WordController wordController4 = WordController.instance;

            wordController4.onExtraFoundAgain = (WordController.NoParam)Delegate.Combine(wordController4.onExtraFoundAgain, new WordController.NoParam(handleExtraAgain));
            WordController wordController5 = WordController.instance;

            wordController5.onNotFound = (WordController.NoParam)Delegate.Combine(wordController5.onNotFound, new WordController.NoParam(handleNotFound));
            GameController gameController = GameController.instance;

            gameController.onNewGame = (GameController.SendGame)Delegate.Combine(gameController.onNewGame, new GameController.SendGame(handleNewGame));
        }
示例#2
0
        private void Start()
        {
            WordController wordController = WordController.instance;

            wordController.onWordFound = (WordController.OnWordFound)Delegate.Combine(wordController.onWordFound, new WordController.OnWordFound(handleWordFound));
            WordController wordController2 = WordController.instance;

            wordController2.onNotFound = (WordController.NoParam)Delegate.Combine(wordController2.onNotFound, new WordController.NoParam(handleNotFound));
            StartCoroutine(delay());
            setName();
        }
示例#3
0
        private void Start()
        {
            GameController instance = GameController.instance;

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

            instance2.onGameEnd = (GameController.SendGame)Delegate.Combine(instance2.onGameEnd, new GameController.SendGame(handleGameEnd));
            GameController instance3 = GameController.instance;

            instance3.onTournamentEnd = (GameController.SendGame)Delegate.Combine(instance3.onTournamentEnd, new GameController.SendGame(handleGameEnd));
            WordController instance4 = WordController.instance;

            instance4.onWordFound = (WordController.OnWordFound)Delegate.Combine(instance4.onWordFound, new WordController.OnWordFound(handleWordFound));
        }
示例#4
0
        private void Start()
        {
            extra = false;
            WordController wordController = WordController.instance;

            wordController.onExtraFound = (WordController.OnExtraFound)Delegate.Combine(wordController.onExtraFound, new WordController.OnExtraFound(handleExtraFound));
            GameController gameController = GameController.instance;

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

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

            gameController3.onTournamentEnd = (GameController.SendGame)Delegate.Combine(gameController3.onTournamentEnd, new GameController.SendGame(handleGameEnd));
        }
示例#5
0
        private void Start()
        {
            WordController wordController = WordController.instance;

            wordController.onWordFound = (WordController.OnWordFound)Delegate.Combine(wordController.onWordFound, new WordController.OnWordFound(handleWordFound));
            GameController gameController = GameController.instance;

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

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

            gameController3.onTournamentEnd = (GameController.SendGame)Delegate.Combine(gameController3.onTournamentEnd, new GameController.SendGame(handleAdventureEnd));
            GameController gameController4 = GameController.instance;

            gameController4.onNextLevel = (GameController.SendGame)Delegate.Combine(gameController4.onNextLevel, new GameController.SendGame(handleNextLevel));
        }
示例#6
0
 private void Awake()
 {
     instance = this;
 }