C# Класс TamPlayerScore, kaijurising

Наследование: NetworkBehaviour
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
playerName Text
playerScoreBoard Text[]
scoreCanvas Canvas

Открытые методы

Метод Описание
displayCanvas ( bool canvasStatus ) : void
getPlayerNumber ( ) : int
increaseTheScore ( int amount ) : void

Increases the score for the player the script is attached to.

increaseTheScore ( int amount, int targetPlayerNumber ) : void

Increases the score of the player associated with the provided ID.

Приватные методы

Метод Описание
Cmd_increaseScore ( int amount ) : void
Start ( ) : void
Update ( ) : void
initializeScoreBoard ( ) : void

Описание методов

displayCanvas() публичный Метод

public displayCanvas ( bool canvasStatus ) : void
canvasStatus bool
Результат void

getPlayerNumber() публичный Метод

public getPlayerNumber ( ) : int
Результат int

increaseTheScore() публичный Метод

Increases the score for the player the script is attached to.
public increaseTheScore ( int amount ) : void
amount int Amount.
Результат void

increaseTheScore() публичный Метод

Increases the score of the player associated with the provided ID.
public increaseTheScore ( int amount, int targetPlayerNumber ) : void
amount int Amount.
targetPlayerNumber int
Результат void

Описание свойств

playerName публичное свойство

public Text playerName
Результат Text

playerScoreBoard публичное свойство

public Text[] playerScoreBoard
Результат Text[]

scoreCanvas публичное свойство

public Canvas scoreCanvas
Результат Canvas