Beispiel #1
0
 public override void SetHidden(bool hidden)
 {
     base.SetHidden(hidden);
     if (particle_system != null)
     {
         particle_system.SetHidden(hidden);
     }
 }
Beispiel #2
0
 override protected void Start(float playback_time)
 {
     base.Start(playback_time);
     if (particle_system_prefab != null)
     {
         particle_system = GameObject.Instantiate <HFX_ParticleSystem>(particle_system_prefab);
         particle_system.transform.SetParent(target.transform, false);
         particle_system.transform.localPosition += particle_position;
         particle_system.transform.localScale     = Vector3.Scale(particle_system.transform.localScale, particle_scale);
         particle_system.SetLightingMax(IsLighting ? 1f : 0f);
         particle_system.Play(true, 0);
         particle_system.SetLensTilt(target.CharacterAnimation.IsUIMode ? 0.15f : 0f);
         if (IsHidden)
         {
             particle_system.SetHidden(true);
         }
     }
     if (sound_list != null && sound_list.Length > 0 && sound_list[0].sound != null)
     {
         sound_play = SoundManager.PlaySound(sound_list, -(playback_time - time), sound_tick, sound_count, sound_loop);
     }
 }