Elin Modding Docs Doc
Loading...
Searching...
No Matches
RigidUpdateSound.cs
1using System;
2using UnityEngine;
3
4// Token: 0x0200051C RID: 1308
6{
7 // Token: 0x06002318 RID: 8984 RVA: 0x000C5AE5 File Offset: 0x000C3CE5
8 private void Awake()
9 {
10 this.timer = UnityEngine.Random.Range(1f, 10f);
11 }
12
13 // Token: 0x06002319 RID: 8985 RVA: 0x000C5AFC File Offset: 0x000C3CFC
14 public override void OnFixedUpdate()
15 {
16 this.timer -= RigidUpdate.delta;
17 if (this.timer < 0f)
18 {
19 base.actor.PlaySound(null);
20 this.timer = UnityEngine.Random.Range(1f, 5f);
21 }
22 }
23
24 // Token: 0x040012A0 RID: 4768
25 private float timer;
26}