mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
assign random radio station in Awake(), not Start()
This commit is contained in:
parent
15711064c4
commit
cdb561c4a7
1 changed files with 2 additions and 1 deletions
|
@ -25,11 +25,12 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
|||
void Awake_Radio()
|
||||
{
|
||||
m_radioAudioSource = this.GetComponent<AudioSource>();
|
||||
m_currentRadioStationIndex = Random.Range(0, RadioStation.stations.Length);
|
||||
}
|
||||
|
||||
void Start_Radio()
|
||||
{
|
||||
m_currentRadioStationIndex = Random.Range(0, RadioStation.stations.Length);
|
||||
|
||||
}
|
||||
|
||||
void OnPedPreparedForVehicle_Radio(Ped ped, Seat seat)
|
||||
|
|
Loading…
Reference in a new issue