private void Awake() { m_fallingState = transform.parent.parent.Find("States").GetComponentInChildren(typeof(FallingState)) as FallingState; m_stateMachine = transform.parent.parent.GetComponentInChildren(typeof(StateMachine)) as StateMachine; m_playerGroundChecks = transform.parent.parent.GetComponent(typeof(GroundChecks)) as GroundChecks; }
private void Awake() { m_jumpState = transform.parent.parent.Find("States").GetComponentInChildren(typeof(JumpState)) as JumpState; m_stateMachine = transform.parent.parent.GetComponentInChildren(typeof(StateMachine)) as StateMachine; m_groundChecks = transform.parent.parent.GetComponent(typeof(GroundChecks)) as GroundChecks; m_inputController = transform.parent.parent.GetComponent(typeof(InputController)) as InputController; }
private void Awake() { m_groundMovementState = transform.parent.parent.Find("States").GetComponentInChildren(typeof(GroundMovementState)) as GroundMovementState; m_stateMachine = transform.parent.parent.GetComponentInChildren(typeof(StateMachine)) as StateMachine; m_groundChecks = transform.parent.parent.GetComponent(typeof(GroundChecks)) as GroundChecks; m_characterController = transform.parent.parent.GetComponent(typeof(CharacterController)) as CharacterController; }
private void Awake() { m_playerGroundChecks = GetComponent(typeof(GroundChecks)) as GroundChecks; m_playerTotalVelocity = GetComponent(typeof(PlayerTotalVelocity)) as PlayerTotalVelocity; }