C# Class ThinksyPlugin, thinksy_unity_plugin

Inheritance: MonoBehaviour
Mostrar archivo Open project: senseix/thinksy_unity_plugin Class Usage Examples

Public Properties

Property Type Description
emergencyWindow GameObject
gameAccessToken string
testingMode bool
useLeaderboard bool

Public Methods

Method Description
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

Private Methods

Method Description
GetSingletonInstance ( ) : ThinksyPlugin,
ShowThisEmergencyWindow ( string additionalMessage ) : void

Method Details

AllAnswerPartsGiven() public static method

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
return bool

Awake() public method

public Awake ( ) : void
return void

CountProblemsAnsweredCorrectlySoFar() public static method

Counts the problems answered correctly so far.
public static CountProblemsAnsweredCorrectlySoFar ( ) : uint
return uint

GetMostRecentProblem() public static method

Returns the most recent Problem returned by the NextProblem() function.
public static GetMostRecentProblem ( ) : Problem,
return Problem,

IsInTestingMode() public static method

public static IsInTestingMode ( ) : bool
return bool

NewHeartbeatTiming() public static method

public static NewHeartbeatTiming ( uint newTiming ) : void
newTiming uint
return void

NextProblem() public static method

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,
return Problem,

NextProblemFromInstance() public method

public NextProblemFromInstance ( ) : void
return void

OnApplicationFocus() public method

public OnApplicationFocus ( bool isFocused ) : void
isFocused bool
return void

Reinitialize() public method

Resends all the server communication involved in initializing the game. Primarily a debugging tool.
public Reinitialize ( ) : void
return void

SetAccessToken() public static method

public static SetAccessToken ( string newAccessToken ) : void
newAccessToken string
return void

ShowEmergencyWindow() public static method

Shows a window indicating that something horrible has happened. Use this if something horrible happens.
public static ShowEmergencyWindow ( string additionalMessage ) : void
additionalMessage string
return void

StaticReinitialize() public static method

public static StaticReinitialize ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateCurrentPlayerScore() public static method

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
return void

UsesLeaderboard() public static method

public static UsesLeaderboard ( ) : bool
return bool

Property Details

emergencyWindow public_oe property

public GameObject emergencyWindow
return GameObject

gameAccessToken public_oe property

public string gameAccessToken
return string

testingMode public_oe property

public bool testingMode
return bool

useLeaderboard public_oe property

public bool useLeaderboard
return bool