Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        if (gamePadState.State.IsConnected == false)
        {
            return;
        }
        m_input.UpdateInput();
        //KartTransformer.Update();
        UpdateCamera();

        if (KartState.CanMove())
        {
            UpdateGameplay();
        }
        m_wheelRotation.m_horizontalFactor = m_input.horizontal;
        KartRigidbody.Update();
        KartState.Update();
        UpdateWeapon();
    }