C# 클래스 MinigamePexeso.GameSetup

Creates a tile for each image-set (resourcePack) and lets player choose which set will be used for game Set up difficulty and start main game script
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp

공개 프로퍼티들

프로퍼티 타입 설명
currentGame GameType
gameTilePrefab UnityEngine.GameObject
mainGameScript GameScript
resPacksNames string[]

공개 메소드들

메소드 설명
CreateResourcePacksIcons ( ) : void

Creates the menu and loads resource packs.

GetMenuDimensions ( int elementsCount ) : int[]

Calculates proper number of rows and columns in menu.

Start ( ) : void

Get resource packs and create menu.

Update ( ) : void

Wait for player to select menu item.

비공개 메소드들

메소드 설명
DropOther ( GameObject chosenButton, GameObject buttons ) : IEnumerator

COROUTINE. Not selected buttons fall down.

GetCustomResroucePacksCount ( ) : int

Determines if there are any custom resource packs.

LoadCustomResourcePacks ( ) : IEnumerator

Loads the custom resource packs from external files.

startGame ( GameObject chosenButton ) : void

Player selected resource pack. Set difficulty and start game itself and pass some parameters.

메소드 상세

CreateResourcePacksIcons() 공개 메소드

Creates the menu and loads resource packs.
public CreateResourcePacksIcons ( ) : void
리턴 void

GetMenuDimensions() 공개 메소드

Calculates proper number of rows and columns in menu.
public GetMenuDimensions ( int elementsCount ) : int[]
elementsCount int Elements count.
리턴 int[]

Start() 공개 메소드

Get resource packs and create menu.
public Start ( ) : void
리턴 void

Update() 공개 메소드

Wait for player to select menu item.
public Update ( ) : void
리턴 void

프로퍼티 상세

currentGame 공개적으로 프로퍼티

The current game type.
public GameType currentGame
리턴 GameType

gameTilePrefab 공개적으로 프로퍼티

The game tile prefab.
public GameObject,UnityEngine gameTilePrefab
리턴 UnityEngine.GameObject

mainGameScript 공개적으로 프로퍼티

GameStart script Main game script (GameScript)
public GameScript,MinigamePexeso mainGameScript
리턴 GameScript

resPacksNames 공개적으로 프로퍼티

public string[] resPacksNames
리턴 string[]