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
Показать файл Открыть проект

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

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