C# 클래스 CoinFlip, goalBall

Script that simulates a coinflip.
상속: UnityEngine.ScriptableObject
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
odds float

공개 메소드들

메소드 설명
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.

메소드 상세

Flip() 공개 메소드

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

getExpected() 공개 메소드

Getter for expected.
public getExpected ( ) : int
리턴 int

setExpected() 공개 메소드

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

프로퍼티 상세

odds 공개적으로 프로퍼티

public float odds
리턴 float