Ejemplo n.º 1
0
    private void Start()
    {
        m_Speed = 30f;

        m_Rigidbody     = GetComponent <Rigidbody>();
        selectionHelper = GameObject.Find("SelectionHelper");
        sm        = selectionHelper.GetComponent <SelectionManager1>();
        isDriving = sm.isDriving;


        m_MovementAxisName = "Vertical" + m_PlayerNumber;
        m_TurnAxisName     = "Horizontal" + m_PlayerNumber;
        m_OriginalPitch    = m_MovementAudio.pitch;
    }
Ejemplo n.º 2
0
 private void Start()
 {
     selectionHelper = GameObject.Find("SelectionHelper");
     sm = selectionHelper.GetComponent <SelectionManager1>();
 }