コード例 #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
ファイル: Trap.cs プロジェクト: fcheadle/Through_The_Woods
        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;
        }