Пример #1
0
 public void AddEnvironmentalEntity(EnvironmentEntityBehaviour env)
 {
     env.GrimReaperAppeared += (sender, e) => VoidEnvironmental(env);
     entities.Add(env);
 }
Пример #2
0
 private void VoidEnvironmental(EnvironmentEntityBehaviour env)
 {
     if (env == null) {
         return;
     }
     entities.Remove(env);
     GameObject.Destroy(env.gameObject);
 }