Class PlayerCardCreator
This class is used to create cards for players when they join the game.
Inheritance
object
PlayerCardCreator
Namespace: Game
Assembly: cs.temp.dll.dll
Syntax
public class PlayerCardCreator : MonoBehaviour
Fields
Instance
A single instance of this class that can be accessed from anywhere.
Declaration
public static PlayerCardCreator Instance
Field Value
| Type | Description |
|---|---|
| PlayerCardCreator |
playerJoinCardPrefab
The template used to create new player cards.
Declaration
public GameObject playerJoinCardPrefab
Field Value
| Type | Description |
|---|---|
| GameObject |
Methods
CreateCard()
Creates a new player card and returns it.
Declaration
public PlayerJoinCard CreateCard()
Returns
| Type | Description |
|---|---|
| PlayerJoinCard | The new player card, or nothing if it couldn't be created. |