// Use this for initialization void Start() { m_rb = GetComponent <Rigidbody>(); Debug.Assert(m_rb, "Rigidbody component not found"); m_offGround = false; m_wheelsOnGround = 0; m_wheelCount = m_wheels.Length; m_speedBoostActive = false; m_rewindManager = GameObject.FindGameObjectWithTag("RewindManager"); m_rewindManagerScript = m_rewindManager.GetComponent <RewindManager>(); }
// Use this for initialization void Start() { m_rewindManagerGO = GameObject.FindGameObjectWithTag("RewindManager"); m_rewindManager = m_rewindManagerGO.GetComponent <RewindManager>(); m_particleSpawner = GetComponent <ParticleSpawner>(); }