C# Класс ThinksyPlugin, thinksy_unity_plugin

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

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

Свойство Тип Описание
emergencyWindow GameObject
gameAccessToken string
testingMode bool
useLeaderboard bool

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

Метод Описание
AllAnswerPartsGiven ( ) : bool

Returns whether or not the number of answer parts given to the most recent problem is equal to the correct number of answer parts.

Awake ( ) : void
CountProblemsAnsweredCorrectlySoFar ( ) : uint

Counts the problems answered correctly so far.

GetMostRecentProblem ( ) : Problem,

Returns the most recent Problem returned by the NextProblem() function.

IsInTestingMode ( ) : bool
NewHeartbeatTiming ( uint newTiming ) : void
NextProblem ( ) : Problem,

Returns the next Problem for the Player as an instance of the Problem class. If there aren't enough Problems left in the queue, an asynchronous task will retrieve more from the Senseix server.

NextProblemFromInstance ( ) : void
OnApplicationFocus ( bool isFocused ) : void
Reinitialize ( ) : void

Resends all the server communication involved in initializing the game. Primarily a debugging tool.

SetAccessToken ( string newAccessToken ) : void
ShowEmergencyWindow ( string additionalMessage ) : void

Shows a window indicating that something horrible has happened. Use this if something horrible happens.

StaticReinitialize ( ) : void
Update ( ) : void
UpdateCurrentPlayerScore ( UInt32 score ) : void

Updates the high score of the player on the SenseiX server. This will then be reflected in the leaderboard in the SenseiX menus. If this is not a high score, it will not override previous, higher scores.

UsesLeaderboard ( ) : bool

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

Метод Описание
GetSingletonInstance ( ) : ThinksyPlugin,
ShowThisEmergencyWindow ( string additionalMessage ) : void

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

AllAnswerPartsGiven() публичный статический Метод

Returns whether or not the number of answer parts given to the most recent problem is equal to the correct number of answer parts.
public static AllAnswerPartsGiven ( ) : bool
Результат bool

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

public Awake ( ) : void
Результат void

CountProblemsAnsweredCorrectlySoFar() публичный статический Метод

Counts the problems answered correctly so far.
public static CountProblemsAnsweredCorrectlySoFar ( ) : uint
Результат uint

GetMostRecentProblem() публичный статический Метод

Returns the most recent Problem returned by the NextProblem() function.
public static GetMostRecentProblem ( ) : Problem,
Результат Problem,

IsInTestingMode() публичный статический Метод

public static IsInTestingMode ( ) : bool
Результат bool

NewHeartbeatTiming() публичный статический Метод

public static NewHeartbeatTiming ( uint newTiming ) : void
newTiming uint
Результат void

NextProblem() публичный статический Метод

Returns the next Problem for the Player as an instance of the Problem class. If there aren't enough Problems left in the queue, an asynchronous task will retrieve more from the Senseix server.
public static NextProblem ( ) : Problem,
Результат Problem,

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

public NextProblemFromInstance ( ) : void
Результат void

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

public OnApplicationFocus ( bool isFocused ) : void
isFocused bool
Результат void

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

Resends all the server communication involved in initializing the game. Primarily a debugging tool.
public Reinitialize ( ) : void
Результат void

SetAccessToken() публичный статический Метод

public static SetAccessToken ( string newAccessToken ) : void
newAccessToken string
Результат void

ShowEmergencyWindow() публичный статический Метод

Shows a window indicating that something horrible has happened. Use this if something horrible happens.
public static ShowEmergencyWindow ( string additionalMessage ) : void
additionalMessage string
Результат void

StaticReinitialize() публичный статический Метод

public static StaticReinitialize ( ) : void
Результат void

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

public Update ( ) : void
Результат void

UpdateCurrentPlayerScore() публичный статический Метод

Updates the high score of the player on the SenseiX server. This will then be reflected in the leaderboard in the SenseiX menus. If this is not a high score, it will not override previous, higher scores.
public static UpdateCurrentPlayerScore ( UInt32 score ) : void
score System.UInt32
Результат void

UsesLeaderboard() публичный статический Метод

public static UsesLeaderboard ( ) : bool
Результат bool

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

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

public GameObject emergencyWindow
Результат GameObject

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

public string gameAccessToken
Результат string

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

public bool testingMode
Результат bool

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

public bool useLeaderboard
Результат bool