Cerebrum™
|
Public Types | |
enum | IKType { None = 0 , LeftHand = 1 , RightHand = 2 , Head = 4 } |
Human animation functions. More... | |
Public Member Functions | |
override bool | HandleMessage (string msg, string param, out string retString) |
Handles messages sent to this game object from current MyGameManager. | |
Protected Member Functions | |
override void | Start () |
override void | Awake () |
whether object has animator with "Speed" parameter | |
override void | Update () |
Additional Inherited Members |
|
protectedvirtual |
whether object has animator with "Speed" parameter
Reimplemented from Cerebrum.ObjectMessageHandlerBase.
Reimplemented in Cerebrum.OMHPatient.
|
virtual |
Handles messages sent to this game object from current MyGameManager.
IK Commands
follow AIM_OBJECT [TAGET_OBJECT | TARGET_OBJECT_TAG]
Follows the object TARGET_OBJECT or the object with tag TARGET_OBJECT_TAG.
TARGET_OBJECT | obect to move towards |
TARGET_OBJECT_TAG | tag of obect to move towards |
Examples:
SwitchToScene SCENE_NAME
Switches to SCENE_NAME parameter
SCENE_NAME | scene to switch to |
Examples:
Clickable objects and buttons
Clickable.ResetPressed
Resets clicked-on flag "pressed" to false
Examples:
Clickable.Reset
Resets clicked-on flags "pressed" to false and "clickable" to true
Examples:
Clickable.IsPressed
Checks whether object was clicked on (clicked-on flag "pressed" set)
Examples:
Clickable.On [ true | false ]
Checks whether object was clicked on (clicked-on flag set)
true | or 1 for on, false or 0 for off. Omitted parameter is on. |
Examples:
Audio commands
MOVETO message sets camera position and rotation. moveto/align/orient targetObject [duration]
LOOKAT message sets camera position and rotation. lookAt targetObject offset lookAt targetObject viewerObject(for position) lookAt targetObject ("close", "medium", or "far"(using CameraTargetParams data))
Menu.on - turn object's menu on
Menu.question - set menu's question
Menu.choices CHOICE_STRINGS - set multiple-choice choices
Menu.done - true when choice has been made
Menu.result MATCH_STRING - bool containing whether choice matches MATCH_STRING
Menu.choice - string containing the choice that user made
Switches to SCENE_NAME parameter
CHOICE_STRINGS | choices separated by space or comma. If choice has a space or commad, enclose in single quotes. |
MATCH_STRING | string exactly matching one of the choices |
Examples:
Reimplemented from Cerebrum.ObjectMessageHandlerBase.
Reimplemented in Cerebrum.OMHPatient.
|
protectedvirtual |
Start is called before the first frame update This starts the message handler
Reimplemented from Cerebrum.ObjectMessageHandlerBase.
Reimplemented in Cerebrum.OMHPatient.
|
protectedvirtual |
Reimplemented from Cerebrum.ObjectMessageHandlerBase.
Reimplemented in Cerebrum.OMHPatient.