void initializeEventCallbacks() { SpellSelectedEvent.RegisterListener(spellSelected); SpellUnSelectedEvent.RegisterListener(spellUnSelected); CastingLocationChangedEvent.RegisterListener(castingLocationChanged); StoppedCastingEvent.RegisterListener(stoppedCasting); }
void spellUnSelected(SpellUnSelectedEvent unSelected) { selectedSpell = null; //clearTexture(UITexture); if (UITexture != null) { clearLine(); UITexture.Apply(); } }
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); }
void SpellUnselected(SpellUnSelectedEvent e) { staminaCost = -1; changed = true; }