public void CreateLandingVFX() { foreach (AttackReceiver target in targets) { VFX newVFX = Instantiate(landingVFX); newVFX.transform.position = target.transform.position + targetHeightOffset; } }
private void DestroyOnTarget() { if (mover.GetGridPos() == targetTransform.GetComponent <Mover>().GetGridPos()) { VFX newVFX = Instantiate(deathvfx); newVFX.transform.position = targetTransform.position + targetOffset; //caster.DealDamage(); targetTransform.GetComponent <AnimationHandler>().GetHurtLight(); Destroy(this.gameObject); } }
public void TriggerVFX() { VFX newVFX = Instantiate(triggerVFX); newVFX.transform.position = transform.position; }
public void CreateCastingVFX() { VFX newVFX = Instantiate(castingVFX); newVFX.transform.position = caster.transform.position; }