Core GameKit
3.2.9.0
The ultimate pooling / combat / spawning / variable plugin!
|
This class is used to set up global settings and configure levels and waves for Syncro Spawners. More...
Static Public Member Functions | |
static void | ContinueGame () |
Call this method to continue the game when the game has ended. Continues from the same global wave the player died on. If the player already won, you should not call this. More... | |
static void | RestartGame () |
Call this method to restart the game when the game has ended. Goes back to level #1, wave #1 for Syncro Spawners. More... | |
static void | EndWave () |
Call this method to immediately finish the current wave for Syncro Spawners. More... | |
static void | GotoWave (int levelNum, int waveNum) |
Call this method to immediately finish the current wave for Syncro Spawners and go to a different level / wave you specify. More... | |
static List< string > | GetSortedPrefabPoolNames () |
This returns a list of all Prefab Pools More... | |
static void | PauseWave () |
Use this method to pause the current wave for Syncro Spawners. More... | |
static void | RestartCurrentWave () |
Use this method to restart the current wave for Syncro Spawners. This puts the repeat wave counter back to zero as well. Also, this unpauses the wave if paused. More... | |
static void | UnpauseWave () |
Use this method to unpause the current wave for Syncro Spawners. More... | |
static void | WarpToLevel (int levelNumber, int waveNumber) |
This method lets you start at a custom level and wave number. You must call this no later than Start for it to work properly. More... | |
static void | AddCustomEventReceiver (ICgkEventReceiver receiver, Transform receiverTrans) |
This method is used to keep track of enabled CustomEventReceivers automatically. This is called when then CustomEventReceiver prefab is enabled. Only call this if you write classes that inherit from ICgkEventReceiver. More... | |
static void | RemoveCustomEventReceiver (ICgkEventReceiver receiver) |
This method is used to keep track of enabled CustomEventReceivers automatically. This is called when then CustomEventReceiver prefab is disabled. More... | |
static List< Transform > | ReceiversForEvent (string customEventName) |
Returns a list of all Receivers for a Custom Event More... | |
static void | FireCustomEventIfValid (string anEvent, Transform eventOrigin) |
Fire a custom event if the name is valid (not "NONE", "TYPE IN", etc); More... | |
static void | FireCustomEventWithParam (string customEventName, Transform originObject, object eventParam, bool logDupe=true) |
Fires a CGK custom event but with a parameter More... | |
static void | FireCustomEvent (string customEventName, Transform originObject, bool logDupe=true) |
Calling this method will fire a Custom Event at the originPoint position. All CustomEventReceivers with the named event specified will do whatever action is assigned to them. If there is a distance criteria applied to receivers, it will be applied. More... | |
static bool | CustomEventExists (string customEventName) |
Calling this method will return whether or not the specified Custom Event exists. More... | |
Properties | |
static LevelWave | ActiveWaveInfo [get] |
This property returns the current wave info for Syncro Spawners More... | |
static int | CurrentDisplayLevel [get] |
Gets the current level number for display purposes. More... | |
static int | CurrentDisplayWave [get] |
Gets the current wave number for display purposes. More... | |
static int | CurrentLevel [get] |
This property returns the current level number (zero-based) for Syncro Spawners. More... | |
static int | CurrentLevelWave [get] |
This property returns the current wave number (zero-based) in the current level for Syncro Spawners. More... | |
int | LevelNumber [get] |
This property returns the current level number (zero-based) for Syncro Spawners. More... | |
int | WaveNumber [get] |
This property returns the current wave number (zero-based) in the current level for Syncro Spawners. More... | |
static List< Transform > | GetAllPrefabPools [get] |
A list of the Transforms for all Prefab Pools More... | |
static List< Transform > | GetAllSpawners [get] |
A list of the Transforms for all Syncro Spawners More... | |
static List< WaveSyncroPrefabSpawner > | GetAllSpawnerScripts [get] |
This will return all Syncro Spawners in the Scene. More... | |
static bool | IsGameOver [get, set] |
Use this property to read or set "IsGameOver". If game is over, game over behavior will come into play, Syncro Spawners will stop spawning and waves will not advance. More... | |
static bool | HasNextWave [get] |
This property returns whether there is another wave after the current one. More... | |
static int | LastLevel [get] |
This property returns the number of the last level you have set up (zero-based). More... | |
static List< WaveSyncroPrefabSpawner > | SyncroSpawners [get] |
This property returns a list of all Syncro Spawners in the Scene. More... | |
static WaveSyncroPrefabSpawner | RandomSyncroSpawner [get] |
This property returns a random Syncro Spawner in the Scene. More... | |
static int | TimeRemainingInCurrentWave [get, set] |
This property returns the number of seconds remaining in the current wave for Syncro Spawners. -1 is returned for elimination waves. More... | |
static List< LevelWave > | WaveLengths [get] |
This property returns a list of all wave settings in the current Level. More... | |
static bool | WavesArePaused [get] |
This property will return whether the current wave is paused for Syncro Spawners. More... | |
static float | WavePauseTime [get] |
This property will return the amount of time a wave has been paused for. More... | |
static int | EliminationSpawnersRemaining [get] |
This property will return the number of Spawners that haven't had their waves eliminated yet. More... | |
static int | WaveRemainingItemCount [get] |
The number of items left to eliminate in a wave. More... | |
List< string > | CustomEventNames [get] |
This will return a list of all the Custom Events you have defined, including the selectors for "type in" and "none". More... | |
This class is used to set up global settings and configure levels and waves for Syncro Spawners.
|
static |
This method is used to keep track of enabled CustomEventReceivers automatically. This is called when then CustomEventReceiver prefab is enabled. Only call this if you write classes that inherit from ICgkEventReceiver.
receiver | The receiver object to register. |
receiverTrans | The Transform of the receiver. |
|
static |
Call this method to continue the game when the game has ended. Continues from the same global wave the player died on. If the player already won, you should not call this.
|
static |
Calling this method will return whether or not the specified Custom Event exists.
customEventName | The Custom Event name. |
|
static |
Call this method to immediately finish the current wave for Syncro Spawners.
|
static |
Calling this method will fire a Custom Event at the originPoint position. All CustomEventReceivers with the named event specified will do whatever action is assigned to them. If there is a distance criteria applied to receivers, it will be applied.
customEventName | The name of the custom event. |
originObject | The Transform origin of the event. |
logDupe | Whether or not to log an error with duplicate event firing. |
|
static |
Fire a custom event if the name is valid (not "NONE", "TYPE IN", etc);
anEvent | The name of the Custom Event |
eventOrigin | The origin position of the Custom Event |
|
static |
Fires a CGK custom event but with a parameter
customEventName | The name of the custom event. |
originObject | The Transform origin of the event. |
eventParam | The parameter for the event |
logDupe | Whether or not to log an error with duplicate event firing. |
|
static |
This returns a list of all Prefab Pools
|
static |
Call this method to immediately finish the current wave for Syncro Spawners and go to a different level / wave you specify.
levelNum | The level number to skip to. |
waveNum | The wave number to skip to. |
|
static |
Use this method to pause the current wave for Syncro Spawners.
|
static |
Returns a list of all Receivers for a Custom Event
customEventName | The name of the Custom Event |
|
static |
This method is used to keep track of enabled CustomEventReceivers automatically. This is called when then CustomEventReceiver prefab is disabled.
receiver | The receiver to remove from the tracking list. |
|
static |
Use this method to restart the current wave for Syncro Spawners. This puts the repeat wave counter back to zero as well. Also, this unpauses the wave if paused.
|
static |
Call this method to restart the game when the game has ended. Goes back to level #1, wave #1 for Syncro Spawners.
|
static |
Use this method to unpause the current wave for Syncro Spawners.
|
static |
This method lets you start at a custom level and wave number. You must call this no later than Start for it to work properly.
levelNumber | The level number to start on. |
waveNumber | The wave number to start on. |
|
staticget |
This property returns the current wave info for Syncro Spawners
|
staticget |
Gets the current level number for display purposes.
The current display level.
|
staticget |
Gets the current wave number for display purposes.
The current display wave.
|
staticget |
This property returns the current level number (zero-based) for Syncro Spawners.
|
staticget |
This property returns the current wave number (zero-based) in the current level for Syncro Spawners.
|
get |
This will return a list of all the Custom Events you have defined, including the selectors for "type in" and "none".
|
staticget |
This property will return the number of Spawners that haven't had their waves eliminated yet.
|
staticget |
A list of the Transforms for all Prefab Pools
|
staticget |
A list of the Transforms for all Syncro Spawners
|
staticget |
This will return all Syncro Spawners in the Scene.
|
staticget |
This property returns whether there is another wave after the current one.
|
staticgetset |
Use this property to read or set "IsGameOver". If game is over, game over behavior will come into play, Syncro Spawners will stop spawning and waves will not advance.
|
staticget |
This property returns the number of the last level you have set up (zero-based).
|
get |
This property returns the current level number (zero-based) for Syncro Spawners.
|
staticget |
This property returns a random Syncro Spawner in the Scene.
|
staticget |
This property returns a list of all Syncro Spawners in the Scene.
|
staticgetset |
This property returns the number of seconds remaining in the current wave for Syncro Spawners. -1 is returned for elimination waves.
|
staticget |
This property returns a list of all wave settings in the current Level.
|
get |
This property returns the current wave number (zero-based) in the current level for Syncro Spawners.
|
staticget |
This property will return the amount of time a wave has been paused for.
|
staticget |
The number of items left to eliminate in a wave.
|
staticget |
This property will return whether the current wave is paused for Syncro Spawners.