Restore Continue entity graph from typed state
This commit is contained in:
parent
75d3f05fd9
commit
794e65f4ad
6 changed files with 125 additions and 44 deletions
|
|
@ -338,7 +338,10 @@ public class ZoneRenderer : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
Destroy(EntityInstances[entity].gameObject);
|
||||
if (!EntityInstances.TryGetValue(entity, out var instance))
|
||||
return;
|
||||
|
||||
Destroy(instance.gameObject);
|
||||
EntityInstances.Remove(entity);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue