Exemplo n.º 1
0
 void INewPlayerTurnListener.OnNewPlayerTurn()
 {
     TalentsHolderMgr.DecreasePenalty();
     bishopThornTrapSpell.Tick();
     BishopRootSpell.Tick();
     BishopWithholdEnemySpell.Tick();
 }
Exemplo n.º 2
0
        // Update is called once per frame
        void Update()
        {
            if (!bActivated)
            {
                return;
            }

            if (Camera.main == null)
            {
                Debug.Log("No MainCamera defined!");
                return;
            }

            touchedObject = enemyPick.GetTouchedObject();

            if (touchedObject == null)
            {
                return;
            }

            switch (m_playerSpell)
            {
            case EPlayerSpells.eBishopWithholdEnemy:
                BishopWithholdEnemySpell.Activate(touchedObject);
                break;

            case EPlayerSpells.eBishopEntangle:
            case EPlayerSpells.eBishopFreeze:     // as an upgrade to root/entangle
                BishopRootSpell.Activate(touchedObject);
                break;

            case EPlayerSpells.eBishopInstantDeath:
                BishopInstantDeathSpell.Activate(touchedObject);
                break;
            }
            bActivated = false;
        }