Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
RigidUpdateSound.cs
Go to the documentation of this file.
1using UnityEngine;
2
4{
5 private float timer;
6
7 private void Awake()
8 {
9 timer = Random.Range(1f, 10f);
10 }
11
12 public override void OnFixedUpdate()
13 {
15 if (timer < 0f)
16 {
17 base.actor.PlaySound();
18 timer = Random.Range(1f, 5f);
19 }
20 }
21}
override void OnFixedUpdate()
static float delta
Definition: RigidUpdate.cs:6