Sample class showing how and where to call each function of the DeltaMonitor class. this class will check for changes in every enabled CheckForChangeAttribute variable, every update, and if a change is detected, call the abstract DeltaDetected() function. A child class may be derived from this one, allowing the child to simply override the DeltaDetected() function. No special editor should be required for derived versions, since DeltaMonitor has a property drawer This class is marked as abstract because it does not contain any members with a DeltaAttribute. The abstract keyword means, basically, that the programmer should derive his/her own class, from this one. That class should have members with DeltaAtributes, and define the contents of the, abstract, DeltaDetected function.
|
abstract void | DeltaDetected () |
| Derived classes should override this to define what happens when a change is detected.
|
|
virtual void | Reset () |
| Instantiates the changeMonitor class.
|
|
virtual void | Start () |
| Stores initial values for changeMonitor on Start. Also invokes DetectChanges() once, and resets changeMonitor's changeResult flag.
|
|
virtual void | Update () |
| checks if any DeltaAttributed variables have changed, and if so calls the abstract DelktaDetected function. It then resets the changed state of all variables for next update.
|
|