C# Class MinigameSilhouette.GameScriptSil

Inheritance: UnityEngine.MonoBehaviour
Datei anzeigen Open project: BrainProject/UnityTemp

Public Properties

Property Type Description
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

Public Methods

Method Description
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.

Method Details

CreateGameBoard() public method

public CreateGameBoard ( ) : void
return void

CreateTimer() public method

Creates and starts timer.
public CreateTimer ( ) : void
return void

FoundPair() public method

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
return IEnumerator

NotFoundPair() public method

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
return IEnumerator

Pick() public method

Randomly assigns pictures to planes.
public Pick ( ) : void
return void

Start() public method

Initialization. Creates all cubes and planes, sets their position etc.
public Start ( ) : void
return void

TimerTick() public method

Timer tick event method.
public TimerTick ( object o, System e ) : void
o object O.
e System E.
return void

Update() public method

Infinite loop.
public Update ( ) : void
return void

pictureMatch() public method

Returns true, if two pictures should match.
public pictureMatch ( string tex1, string tex2 ) : bool
tex1 string Picture 1 name
tex2 string Picture 2 name
return bool

Property Details

columns public_oe property

public int columns
return int

correctPairsDisplay public_oe property

public GUIText,UnityEngine correctPairsDisplay
return UnityEngine.GUIText

gameType public_oe property

public ResourcePackSil.GameType gameType
return ResourcePackSil.GameType

menu public_oe property

public GameObject,UnityEngine menu
return UnityEngine.GameObject

resourcePack public_oe property

public string resourcePack
return string

resourcePackMenu public_oe property

public GameObject,UnityEngine resourcePackMenu
return UnityEngine.GameObject

rows public_oe property

public int rows
return int

scoreboard public_oe property

public ScoreboardSil,MinigameSilhouette scoreboard
return ScoreboardSil

timerDisplay public_oe property

GUIText for timer.
public GUIText,UnityEngine timerDisplay
return UnityEngine.GUIText

wrongPairsDisplay public_oe property

public GUIText,UnityEngine wrongPairsDisplay
return UnityEngine.GUIText