Пример #1
0
    //---------------------------------------------------------------------------------- -
    //  Initialize Components Function
    //---------------------------------------------------------------------------------- -
    private void InitializeComponents()
    {
        m_inputController.Init(this);

        m_movementController.Init(m_rigidbody, m_animator);
        m_attacker.Init(this, m_inputController, m_nutGrabber, m_animator);
        m_buttStompAttacker.Init(m_inputController);
        m_attackerTop.Init(this, m_inputController, m_animator);
        m_nutGrabber.Init(this, m_inputController, m_movementController, m_animator);
        m_squeaker.Init(this);
        GetComponent <FootstepController>().Init(this, m_animator);
        m_fxSpawner.Init(gameObject);
    }