C# Класс MinigameSilhouette.GameScriptSil

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

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

Свойство Тип Описание
columns int
correctPairsDisplay UnityEngine.GUIText
gameType ResourcePackSil.GameType
menu UnityEngine.GameObject
resourcePack string
resourcePackMenu UnityEngine.GameObject
rows int
scoreboard ScoreboardSil
timerDisplay UnityEngine.GUIText
wrongPairsDisplay UnityEngine.GUIText

Открытые методы

Метод Описание
CreateGameBoard ( ) : void
CreateTimer ( ) : void

Creates and starts timer.

FoundPair ( GameObject first, GameObject second ) : IEnumerator

COROUTINE. Called when user selected two pictures which match.

NotFoundPair ( GameObject first, GameObject second ) : IEnumerator

COROUTINE. Called when user selected two pictures which do not match.

Pick ( ) : void

Randomly assigns pictures to planes.

Start ( ) : void

Initialization. Creates all cubes and planes, sets their position etc.

TimerTick ( object o, System e ) : void

Timer tick event method.

Update ( ) : void

Infinite loop.

pictureMatch ( string tex1, string tex2 ) : bool

Returns true, if two pictures should match.

Описание методов

CreateGameBoard() публичный Метод

public CreateGameBoard ( ) : void
Результат void

CreateTimer() публичный Метод

Creates and starts timer.
public CreateTimer ( ) : void
Результат void

FoundPair() публичный Метод

COROUTINE. Called when user selected two pictures which match.
public FoundPair ( GameObject first, GameObject second ) : IEnumerator
first UnityEngine.GameObject First object
second UnityEngine.GameObject Second object
Результат IEnumerator

NotFoundPair() публичный Метод

COROUTINE. Called when user selected two pictures which do not match.
public NotFoundPair ( GameObject first, GameObject second ) : IEnumerator
first UnityEngine.GameObject First object
second UnityEngine.GameObject Second object
Результат IEnumerator

Pick() публичный Метод

Randomly assigns pictures to planes.
public Pick ( ) : void
Результат void

Start() публичный Метод

Initialization. Creates all cubes and planes, sets their position etc.
public Start ( ) : void
Результат void

TimerTick() публичный Метод

Timer tick event method.
public TimerTick ( object o, System e ) : void
o object O.
e System E.
Результат void

Update() публичный Метод

Infinite loop.
public Update ( ) : void
Результат void

pictureMatch() публичный Метод

Returns true, if two pictures should match.
public pictureMatch ( string tex1, string tex2 ) : bool
tex1 string Picture 1 name
tex2 string Picture 2 name
Результат bool

Описание свойств

columns публичное свойство

public int columns
Результат int

correctPairsDisplay публичное свойство

public GUIText,UnityEngine correctPairsDisplay
Результат UnityEngine.GUIText

gameType публичное свойство

public ResourcePackSil.GameType gameType
Результат ResourcePackSil.GameType

menu публичное свойство

public GameObject,UnityEngine menu
Результат UnityEngine.GameObject

resourcePack публичное свойство

public string resourcePack
Результат string

resourcePackMenu публичное свойство

public GameObject,UnityEngine resourcePackMenu
Результат UnityEngine.GameObject

rows публичное свойство

public int rows
Результат int

scoreboard публичное свойство

public ScoreboardSil,MinigameSilhouette scoreboard
Результат ScoreboardSil

timerDisplay публичное свойство

GUIText for timer.
public GUIText,UnityEngine timerDisplay
Результат UnityEngine.GUIText

wrongPairsDisplay публичное свойство

public GUIText,UnityEngine wrongPairsDisplay
Результат UnityEngine.GUIText