// Use this for initialization void Start() { if (m_playerTarget != null) { m_input = m_playerTarget.GetComponent<PlayerInputController>(); } }
void Awake() { m_playerInput = gameObject.GetComponent<PlayerInputController>(); m_stateMachine = gameObject.GetComponent<StateEngine>(); m_playerMoveState = gameObject.GetComponent<GameObjectMoveState>(); }