示例#1
0
        public static void Insert(ImpactParticles noImpacto, Vector3 position, Quaternion qparticles)
        {
            GameObject impacto = Resources.Load <GameObject>("particles/" + noImpacto.ToString());

            impacto = MonoBehaviour.Instantiate(impacto, position, qparticles);

            if (impacto)
            {
                MonoBehaviour.Destroy(impacto, 1.5f);
            }
        }
示例#2
0
 public AeroImpactFeatures(
     ImpactParticles noImpacto,
     AttacksTrails trail,
     ToutchingFloor toque,
     PrepareJump prepara,
     FinalAeroImpact final,
     SoundEffectID onPrepareSound     = SoundEffectID.rajadaDeAgua,
     SoundEffectID onTouchGroundSound = SoundEffectID.rajadaDeAgua,
     bool parentearNoOsso             = true
     )
 {
     this.noImpacto          = noImpacto;
     this.trail              = trail;
     this.toque              = toque;
     this.prepara            = prepara;
     this.final              = final;
     this.parentearNoOsso    = parentearNoOsso;
     this.onPrepareSound     = onPrepareSound;
     this.onTouchGroundSound = onTouchGroundSound;
 }
示例#3
0
 public ImpactFeatures(AttacksTrails trail, ImpactParticles noImpacto, bool parentearOsso)
 {
     nomeTrail            = trail;
     this.noImpacto       = noImpacto;
     this.parentearNoOsso = parentearOsso;
 }