Exemplo n.º 1
0
 public void OnAddedToGroup()
 {
     //this will be the case the second time it's spawned
     ParentStructure = worlditem.Group.GetParentStructure();
     //if the structure has already loaded, this will call on structure loaded
     ParentStructure.AddDynamicPrefab(this);
     ParentStructure.OnInteriorLoaded += OnStructureLoaded;
     ParentStructure.OnExteriorLoaded += OnStructureLoaded;
 }