Ejemplo n.º 1
0
    public void RemoveCardFromSquare()
    {
        HackBattleData hackBattleData = FindObjectOfType <HackBattleData>();

        if (attachedHackCard)
        {
            attachedHackCard.DestroyInstance();
            if (!wasSafeWhenPlacementAttempted)
            {
                safe = wasSafeWhenPlacementAttempted;
                hackBattleData.LowerSecurityLevel();
            }
        }
    }