Public Member Functions | |
def | __init__ |
Public Attributes | |
owner | |
The GameObject which the script affects. | |
onCreate | |
Function to be called once after the instantiation of self.owner. | |
onUpdate | |
Function to be called at each turn. | |
onCollision | |
Function to be called when self.owner collides with another GameObject. | |
onInteraction | |
function to be called when self.owner suffers an interaction. |
Script to dictate behavior of a GameObject. onCreate, onUpdate, onCollision and onInteraction functions are called by the game's main loop.
function to be called when self.owner suffers an interaction.
It must receive the object that started the Interaction as its argument