Пример #1
0
 private void Dropped()
 {
     Egg.gameObject.SetActive(false);
     Zone.enabled = false;
     par.Play();
     Explose();
     StartCoroutine(WaitForDestroy());
 }
Пример #2
0
 public override void StartUp(Entity entity, float time)
 {
     VFXBurnt = pool.Spawn(id_fire, entity.transform.position, Quaternion.identity) as ControlPartice;
     VFXBurnt.Play();
     target = entity;
     VFXBurnt.transform.localScale = new Vector3(entity.size.x, entity.size.y, 1);
     VFXBurnt.transform.position   = target.center;
     target.Harmful_Fire           = true;
     target.OnValueChanged?.Invoke(Entity.HARMFUL_FIRE);
     SetLissener(true);
     AddTime(time);
 }
Пример #3
0
 public override void StartUp(Entity entity, float time)
 {
     VFXPoison = pool.Spawn(id_poison, entity.center, Quaternion.identity) as ControlPartice;
     VFXPoison.transform.localScale = new Vector3(entity.size.x, entity.size.y, 1);
     VFXPoison.Play();
     if (entity != null)
     {
         target = entity;
         target.Harmful_Poison = true;
         target.OnValueChanged?.Invoke(Entity.HARMFUL_POISON);
         SetLissener(true);
     }
     AddTime(time);
 }
Пример #4
0
 protected virtual void OnDestroyed(ControlPartice VFX)
 {
     VFX.Play();
 }