C# 클래스 MinigamePexeso.GameScript

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp

공개 프로퍼티들

프로퍼티 타입 설명
columns int
correctPairsDisplay UnityEngine.GUIText
currentGame GameType
customPack System.Boolean
enableSound bool
gameTilePrefab UnityEngine.GameObject
menu UnityEngine.GameObject
resourcePack string
resourcePackMenu UnityEngine.GameObject
rows int
scoreb UnityEngine.GameObject
timerDisplay UnityEngine.GUIText
wrongPairsDisplay UnityEngine.GUIText

공개 메소드들

메소드 설명
AddCustomPicturesToGameTiles ( ) : IEnumerator

Randomly assigns pictures from custom resource pack to game tiles.

AddPicturesToGameTiles ( ) : void

Randomly assigns pictures to game tiles.

CreateGameBoard ( ) : void

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

FoundPairPexeso ( GameObject first, GameObject second ) : IEnumerator

COROUTINE. Called when user selected two matching pictures

FoundPairSilhouette ( GameObject first, GameObject second ) : IEnumerator

COROUTINE. Called when user selected two pictures which match.

NotFoundPairPexeso ( GameObject first, GameObject second ) : IEnumerator

COROUTINE. Called when user selected two tiles which different pictures

NotFoundPairSilhouette ( GameObject first, GameObject second ) : IEnumerator

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

RestartGame ( ) : IEnumerator

Restarts the game.

Update ( ) : void

Infinite loop. Updates game time and launches specific game turn.

checkTilesMatch ( GameObject first, GameObject second ) : bool

Returns true if pictures of given tiles are matching.

비공개 메소드들

메소드 설명
EndGame ( ) : void

Game ended. Play winning music, stop timer, etc.

PexesoGameTurn ( ) : void

Game turn of Pexeso. Calculates clicking on tiles, matching of pairs, starting game tile flip and remove coroutines.

SilhouetteGameTurn ( ) : void

Game turn of Silhouette or Similarities. Calculates clicking on tiles, matching of pairs, starting game tile move and remove coroutines.

메소드 상세

AddCustomPicturesToGameTiles() 공개 메소드

Randomly assigns pictures from custom resource pack to game tiles.
public AddCustomPicturesToGameTiles ( ) : IEnumerator
리턴 IEnumerator

AddPicturesToGameTiles() 공개 메소드

Randomly assigns pictures to game tiles.
public AddPicturesToGameTiles ( ) : void
리턴 void

CreateGameBoard() 공개 메소드

Initialization. Creates all cubes and planes, sets their position etc.
public CreateGameBoard ( ) : void
리턴 void

FoundPairPexeso() 공개 메소드

COROUTINE. Called when user selected two matching pictures
public FoundPairPexeso ( GameObject first, GameObject second ) : IEnumerator
first UnityEngine.GameObject First object
second UnityEngine.GameObject Second object
리턴 IEnumerator

FoundPairSilhouette() 공개 메소드

COROUTINE. Called when user selected two pictures which match.
public FoundPairSilhouette ( GameObject first, GameObject second ) : IEnumerator
first UnityEngine.GameObject First object
second UnityEngine.GameObject Second object
리턴 IEnumerator

NotFoundPairPexeso() 공개 메소드

COROUTINE. Called when user selected two tiles which different pictures
public NotFoundPairPexeso ( GameObject first, GameObject second ) : IEnumerator
first UnityEngine.GameObject First game tile
second UnityEngine.GameObject Second game tile
리턴 IEnumerator

NotFoundPairSilhouette() 공개 메소드

COROUTINE. Called when user selected two pictures which do not match.
public NotFoundPairSilhouette ( GameObject first, GameObject second ) : IEnumerator
first UnityEngine.GameObject First object
second UnityEngine.GameObject Second object
리턴 IEnumerator

RestartGame() 공개 메소드

Restarts the game.
public RestartGame ( ) : IEnumerator
리턴 IEnumerator

Update() 공개 메소드

Infinite loop. Updates game time and launches specific game turn.
public Update ( ) : void
리턴 void

checkTilesMatch() 공개 메소드

Returns true if pictures of given tiles are matching.
public checkTilesMatch ( GameObject first, GameObject second ) : bool
first UnityEngine.GameObject
second UnityEngine.GameObject
리턴 bool

프로퍼티 상세

columns 공개적으로 프로퍼티

Number of columns.
public int columns
리턴 int

correctPairsDisplay 공개적으로 프로퍼티

GUI Number of correct pairs. Used as score.
public GUIText,UnityEngine correctPairsDisplay
리턴 UnityEngine.GUIText

currentGame 공개적으로 프로퍼티

Current game type.
public GameType currentGame
리턴 GameType

customPack 공개적으로 프로퍼티

True if custom resource pack is selected.
public Boolean,System customPack
리턴 System.Boolean

enableSound 공개적으로 프로퍼티

True if sounds are enabled.
public bool enableSound
리턴 bool

gameTilePrefab 공개적으로 프로퍼티

Game tile.
public GameObject,UnityEngine gameTilePrefab
리턴 UnityEngine.GameObject

menu 공개적으로 프로퍼티

GameStart script
public GameObject,UnityEngine menu
리턴 UnityEngine.GameObject

resourcePack 공개적으로 프로퍼티

Determines current resource pack
public string resourcePack
리턴 string

resourcePackMenu 공개적으로 프로퍼티

ResourcePack script
public GameObject,UnityEngine resourcePackMenu
리턴 UnityEngine.GameObject

rows 공개적으로 프로퍼티

Number of rows.
public int rows
리턴 int

scoreb 공개적으로 프로퍼티

Scoreboard. Not used at the moment
public GameObject,UnityEngine scoreb
리턴 UnityEngine.GameObject

timerDisplay 공개적으로 프로퍼티

GUIText for timer.
public GUIText,UnityEngine timerDisplay
리턴 UnityEngine.GUIText

wrongPairsDisplay 공개적으로 프로퍼티

GUI Number of wrong pairs. Used as score.
public GUIText,UnityEngine wrongPairsDisplay
리턴 UnityEngine.GUIText