Global Script: The home for your game specific logic.
- The functions in this script are used in every room in your game.
- Add your own variables and functions in here and you can access them with
Globals.
(eg: Globals.m_myCoolInteger
)
- If you've used Adventure Game Studio, this is equivalent to the Global Script in that
Inherits GlobalScriptBase< GlobalScript >.
|
void | OnGameStart () |
| Called when game first starts. More...
|
|
void | OnPostRestore (int version) |
| Called after restoring a game. Use this if you need to update any references based on saved data. More...
|
|
void | OnEnterRoom () |
| Blocking script called whenever you enter a room, before fading in. Non-blocking functions only. More...
|
|
IEnumerator | OnEnterRoomAfterFade () |
| Blocking script called whenever you enter a room, after fade in is complete. More...
|
|
IEnumerator | OnExitRoom (IRoom oldRoom, IRoom newRoom) |
| Blocking script called whenever you exit a room, as it fades out. More...
|
|
IEnumerator | UpdateBlocking () |
| Blocking script called every frame when nothing's blocking, you can call blocking functions in here that you'd like to occur anywhere in the game. More...
|
|
void | Update () |
| Called every frame. Non-blocking functions only. More...
|
|
void | UpdateNoPause () |
| Called every frame, even when paused. Non-blocking functions only. More...
|
|
IEnumerator | OnAnyClick () |
| Blocking script called whenever the player clicks anywwere. This function is called before any other click interaction. If this function blocks, it will stop any other interaction from happening. More...
|
|
IEnumerator | OnWalkTo () |
| Blocking script called whenever the player tries to walk somewhere. Even if C.Player.Moveable is set to false. More...
|
|
void | OnMouseClick (bool leftClick, bool rightClick) |
| Called when the mouse is clicked in the game screen. Use this to customise your game interface by calling E.ProcessClick() with the verb that should be used. By default this is set up for a 2 click interface. More...
|
|
IEnumerator | UnhandledInteract (IQuestClickable mouseOver) |
| Called when player interacted with something that had not specific "interact" script. More...
|
|
IEnumerator | UnhandledLookAt (IQuestClickable mouseOver) |
| Called when player looked at something that had not specific "Look at" script. More...
|
|
IEnumerator | UnhandledUseInvInv (Inventory invA, Inventory invB) |
| Called when player used one inventory item on another that doesn't have a response. More...
|
|
IEnumerator | UnhandledUseInv (IQuestClickable mouseOver, Inventory item) |
| Called when player used inventory on something that didn't have a response. More...
|
|