C# Класс CoinFlip, goalBall

Script that simulates a coinflip.
Наследование: UnityEngine.ScriptableObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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