/// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> void Start() { playerRB = GetComponent <Rigidbody>(); playerCarController = GetComponent <PlayerCarController>(); targetClosestPolice = GetComponent <TargetClosestPolice>(); increaseScoreController = GetComponent <PlayerIncreaseScoreController>(); bustedAmount = 0; bustedSet = false; }
/// <summary> /// Start is called on the frame when a script is enabled just before /// any of the Update methods is called the first time. /// </summary> void Start() { base.Init(); increaseScoreController = GetComponent <PlayerIncreaseScoreController>(); }