Roulette 1.0
Roulette game template
Loading...
Searching...
No Matches
GBTemplates.Roulette.SoundControllerRoulette Class Reference

The sound controller for the roulette. More...

Inheritance diagram for GBTemplates.Roulette.SoundControllerRoulette:

Public Member Functions

void ProcessResultClip (int number, string color, bool almostOneChipWon)
 Processes the result clip.
 
void PlayNoMore ()
 Plays the no more clip.
 
void PlayPlaceYourBets ()
 Plays the place your bets clip.
 
SoundControllerRoulette PlayClip (AudioClip clip, bool canPlayOverride=true)
 Plays the clip.
 
SoundControllerRoulette PlayClip (AudioClip clip, float volume, bool canPlayOverride=true)
 Plays the clip.
 
void PlayQueue (AudioClip clip, float secs)
 Plays the queue.
 

Public Attributes

RouletteSoundSource soundsSource
 

Static Public Attributes

static SoundControllerRoulette Instance
 

Properties

bool isPlaying [get]
 Gets a value indicating whether is playing.
 

Detailed Description

The sound controller for the roulette.

Member Function Documentation

◆ PlayClip() [1/2]

SoundControllerRoulette GBTemplates.Roulette.SoundControllerRoulette.PlayClip ( AudioClip  clip,
bool  canPlayOverride = true 
)

Plays the clip.

Parameters
clipThe clip.
canPlayOverrideIf true, can play override.
Returns
A SoundControllerRoulette.

◆ PlayClip() [2/2]

SoundControllerRoulette GBTemplates.Roulette.SoundControllerRoulette.PlayClip ( AudioClip  clip,
float  volume,
bool  canPlayOverride = true 
)

Plays the clip.

Parameters
clipThe clip.
volumeThe volume.
canPlayOverrideIf true, can play override.
Returns
A SoundControllerRoulette.

◆ PlayQueue()

void GBTemplates.Roulette.SoundControllerRoulette.PlayQueue ( AudioClip  clip,
float  secs 
)

Plays the queue.

Parameters
clipThe clip.
secsThe secs.

◆ ProcessResultClip()

void GBTemplates.Roulette.SoundControllerRoulette.ProcessResultClip ( int  number,
string  color,
bool  almostOneChipWon 
)

Processes the result clip.

Parameters
numberThe number.
colorThe color.
almostOneChipWonIf true, almost one chip won.

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