Esempio n. 1
0
 void initializeEventCallbacks()
 {
     StartedCastingEvent.RegisterListener(castingStarted);
     StoppedCastingEvent.RegisterListener(castingStopped);
     SpellSelectedEvent.RegisterListener(SpellSelected);
     SpellCastEvent.RegisterListener(SpellCast);
     SpellUnSelectedEvent.RegisterListener(SpellUnselected);
     CastingProjectionDestroyedEvent.RegisterListener(CastingProjectionDestroyed);
     CastingProjectionCreatedEvent.RegisterListener(CastingProjectionCreated);
     CastingLocationChangedEvent.RegisterListener(CastingLocationChanged);
 }
    // All callback functions the camera recieves
    #region Callback functions

    void initializeCallbackFunctions()
    {
        CastingProjectionDestroyedEvent.RegisterListener(castingProjectionDestroyed);
        CastingProjectionCreatedEvent.RegisterListener(castingProjectionCreated);
        CastingLocationChangedEvent.RegisterListener(castingLocationChanged);
    }