void OnDestroy() { GameObject temp = GameObject.Find("FPSController"); speedo = temp.GetComponent <FirstPersonController>(); speedo.SpeedChange(rspeed, wspeed); }
void OnDestroy() { GameObject temp = GameObject.Find("FPSController"); speedo = temp.GetComponent <FirstPersonController>(); speedo.SpeedChange(rspeed, wspeed); }