示例#1
0
 public void CreateLandingVFX()
 {
     foreach (AttackReceiver target in targets)
     {
         VFX newVFX = Instantiate(landingVFX);
         newVFX.transform.position = target.transform.position + targetHeightOffset;
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
        public void TriggerVFX()
        {
            VFX newVFX = Instantiate(triggerVFX);

            newVFX.transform.position = transform.position;
        }
示例#4
0
        public void CreateCastingVFX()
        {
            VFX newVFX = Instantiate(castingVFX);

            newVFX.transform.position = caster.transform.position;
        }