Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        // Get character
        m_Character = GetComponent <Character>();

        // Current camera
        if (m_TPSCamera != null)
        {
            m_CurrentCamera = m_TPSCamera;

            if (m_FPSCamera != null)
            {
                m_FPSCamera.GetComponent <Camera>().enabled = false;
                Camera.SetupCurrent(m_CurrentCamera.CameraComponent);
            }
        }

        Input_Dictionary = new Dictionary <string, List <string> >();
        List <string> PC_List = new List <string>()
        {
            "Throttle",
            "Rudder",
            "Pitch",
            "Roll"
        };

        Input_Dictionary.Add(input_tag, PC_List);
    }
    // Use this for initialization
    void Start()
    {
        // Get character
        m_Character = GetComponent <Character>();

        // Current camera
        if (m_TPSCamera != null)
        {
            m_CurrentCamera = m_TPSCamera;

            if (m_FPSCamera != null)
            {
                m_FPSCamera.GetComponent <Camera>().enabled = false;
                Camera.SetupCurrent(m_CurrentCamera.CameraComponent);
            }
        }
    }