C# Class CoinFlip, goalBall

Script that simulates a coinflip.
Inheritance: UnityEngine.ScriptableObject
Afficher le fichier Open project: DrexelGoalBall/goalBall Class Usage Examples

Méthodes publiques

Свойство Type Description
odds float

Méthodes publiques

Méthode Description
Flip ( ) : bool

Activates the flip and returns true or false depending on if the expected choice was chosen.

getExpected ( ) : int

Getter for expected.

setExpected ( int choice ) : void

Sets the expected value to the choice argument. Should be 1 or 0.

Method Details

Flip() public méthode

Activates the flip and returns true or false depending on if the expected choice was chosen.
public Flip ( ) : bool
Résultat bool

getExpected() public méthode

Getter for expected.
public getExpected ( ) : int
Résultat int

setExpected() public méthode

Sets the expected value to the choice argument. Should be 1 or 0.
public setExpected ( int choice ) : void
choice int
Résultat void

Property Details

odds public_oe property

public float odds
Résultat float