Exemple #1
0
    protected void activateDamageArea(Actor cardUser)
    {
        if (currentAreas == null)
        {
            Debug.LogWarning("no damage area to activate!");
            return;
        }

        currentAreas.updateAreasDamageAmounts(cardUser, true);
        currentAreas.startDamageCountdowns();
        currentAreas.disconectAim();
        currentAreas = null;         //detach the area from this card
    }
Exemple #2
0
 protected void giveUserAreaSelector(Actor cardUser)
 {
     currentAreas = createDamageAreas();
     currentAreas.setAimLocationCallbacks(cardUser.transform, cardUser.getActorAimCallback(), DamageAreaControls.LocationUpdateType.SetDistanceFromLocation);
 }