Example #1
0
        private void Awake()
        {
            chatInteractor       = GetComponent <ChatInteractor>();
            focusStateController = FindObjectOfType <FocusStateController>();

            CreateAndSubscribeToChatWindow();
        }
Example #2
0
 private void Awake()
 {
     playerStateBehaviours = new Dictionary <PlayerStates, IPlayerStateBehaviour>
     {
         { PlayerStates.Idle, new PlayerIdleState(this) },
         { PlayerStates.Moving, new PlayerMovingState(this) },
         { PlayerStates.Jumping, new PlayerJumpingState(this) },
         { PlayerStates.Falling, new PlayerFallingState(this) },
         { PlayerStates.Attacked, new PlayerAttackedState(this) },
         { PlayerStates.Rope, new PlayerRopeState(this) },
         { PlayerStates.Ladder, new PlayerLadderState(this) }
     };
     playerStateBehaviour = playerStateBehaviours[playerState];
     focusStateController = FindObjectOfType <FocusStateController>();
 }