private void Awake() { m_inputController = transform.parent.parent.GetComponent(typeof(InputController)) as InputController; m_playerStateMachine = transform.parent.GetComponent(typeof(StateMachine)) as StateMachine; m_groundMovementState = transform.parent.GetComponentInChildren(typeof(GroundMovementState)) as GroundMovementState; m_cameraStateMachine = transform.parent.parent.GetComponentInChildren(typeof(StateMachineCamera)) as StateMachineCamera; m_talkingCameraState = m_cameraStateMachine.GetComponentInChildren(typeof(TalkingCameraState)) as TalkingCameraState; m_defaultCameraState = m_cameraStateMachine.GetComponentInChildren(typeof(DefaultCameraState)) as DefaultCameraState; }