Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
RigidUpdateSound.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
3
public
class
RigidUpdateSound
:
RigidUpdate
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
{
14
timer
-=
RigidUpdate
.
delta
;
15
if
(
timer
< 0f)
16
{
17
base.actor.PlaySound();
18
timer
=
Random
.Range(1f, 5f);
19
}
20
}
21
}
Rarity.Random
@ Random
RigidUpdateSound
Definition:
RigidUpdateSound.cs:4
RigidUpdateSound.Awake
void Awake()
Definition:
RigidUpdateSound.cs:7
RigidUpdateSound.timer
float timer
Definition:
RigidUpdateSound.cs:5
RigidUpdateSound.OnFixedUpdate
override void OnFixedUpdate()
Definition:
RigidUpdateSound.cs:12
RigidUpdate
Definition:
RigidUpdate.cs:5
RigidUpdate.delta
static float delta
Definition:
RigidUpdate.cs:6
Elin
RigidUpdateSound.cs
Generated by
1.9.6