Example #1
0
    private void GameWonEvents(PlayerController playerController)
    {
        _gameWonTextSo.AddEvent(() => RepositionScreen(3.5f));
        _gameWonTextSo.AddEvent(() =>
        {
            playerController.Animator.SetBool(Dance, true);
            _screenRotator.AnimateAndPlay();
        });

        Signals.Get <TextReceived>().Dispatch(_gameWonTextSo);
    }
Example #2
0
    private void PlayerEvents()
    {
        if (_playerController)
        {
            _fightWonText.AddEvent(() => _playerController.SetState(PlayerStates.Talking));
            _fightWonText.AddEvent(() =>
            {
                _playerController.Animator.SetBool(Talking, false);
                _playerController.SetState(PlayerStates.Walking);
            });
        }

        Signals.Get <TextReceived>().Dispatch(_fightWonText);
    }