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 }
protected void giveUserAreaSelector(Actor cardUser) { currentAreas = createDamageAreas(); currentAreas.setAimLocationCallbacks(cardUser.transform, cardUser.getActorAimCallback(), DamageAreaControls.LocationUpdateType.SetDistanceFromLocation); }