Game Development Reference
In-Depth Information
Listing 66: A script that handles basic functions of a door regardless of the actual implementation of these functions
You might have noticed that this script internally handles the state of the door, and provides
public functions to check or modify this state. All functions may be called without any
parameters, and their effect on the internal state is instant. This is true for Open() , Close() ,
and Lock() functions. The only exception is Unlock() ; which requires the caller to provide
Search WWH ::




Custom Search