void Start() { if (_focus == null) { return; } _carController = _focus.GetComponent <SurfaceClampedCarController>(); if (_carController) { _averageSpeed = _carController.m_curSpeed; } }
// Start is called before the first frame update void Start() { _life = GetComponent <PlayerLife>(); _controller = GetComponent <SurfaceClampedCarController>(); _life.OnDeath.AddListener(OnDeath); }
// Start is called before the first frame update void Start() { _life = GetComponent <PlayerLife>(); _car = GetComponent <SurfaceClampedCarController>(); }