C# Class CoinFlip, goalBall

Script that simulates a coinflip.
Inheritance: UnityEngine.ScriptableObject
显示文件 Open project: DrexelGoalBall/goalBall Class Usage Examples

Public Properties

Property Type Description
odds float

Public Methods

Method 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 method

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

getExpected() public method

Getter for expected.
public getExpected ( ) : int
return int

setExpected() public method

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

Property Details

odds public_oe property

public float odds
return float