Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
RigidUpdateSound Class Reference
Inheritance diagram for RigidUpdateSound:
RigidUpdate EMono

Public Member Functions

override void OnFixedUpdate ()
 
virtual void OnFixedUpdate ()
 

Private Member Functions

void Awake ()
 

Private Attributes

float timer
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Public Attributes inherited from RigidUpdate
Rigidbody2D rb
 
bool active = true
 
CollectibleActor _actor
 
- Static Public Attributes inherited from RigidUpdate
static float delta
 
static float leftX
 
static float rightX
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from RigidUpdate
CollectibleActor actor [get]
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 3 of file RigidUpdateSound.cs.

Member Function Documentation

◆ Awake()

void RigidUpdateSound.Awake ( )
inlineprivate

Definition at line 7 of file RigidUpdateSound.cs.

8 {
9 timer = Random.Range(1f, 10f);
10 }

References Random, and timer.

◆ OnFixedUpdate()

override void RigidUpdateSound.OnFixedUpdate ( )
inlinevirtual

Reimplemented from RigidUpdate.

Definition at line 12 of file RigidUpdateSound.cs.

13 {
15 if (timer < 0f)
16 {
17 base.actor.PlaySound();
18 timer = Random.Range(1f, 5f);
19 }
20 }
static float delta
Definition: RigidUpdate.cs:6

References RigidUpdate.delta, Random, and timer.

Member Data Documentation

◆ timer

float RigidUpdateSound.timer
private

Definition at line 5 of file RigidUpdateSound.cs.

Referenced by Awake(), and OnFixedUpdate().


The documentation for this class was generated from the following file: