Exemplo n.º 1
0
    void initializeEventCallbacks()
    {
        SpellSelectedEvent.RegisterListener(spellSelected);
        SpellUnSelectedEvent.RegisterListener(spellUnSelected);

        CastingLocationChangedEvent.RegisterListener(castingLocationChanged);
        StoppedCastingEvent.RegisterListener(stoppedCasting);
    }
Exemplo n.º 2
0
    void spellUnSelected(SpellUnSelectedEvent unSelected)
    {
        selectedSpell = null;
        //clearTexture(UITexture);

        if (UITexture != null)
        {
            clearLine();
            UITexture.Apply();
        }
    }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
0
 void SpellUnselected(SpellUnSelectedEvent e)
 {
     staminaCost = -1;
     changed     = true;
 }