예제 #1
0
파일: Dynamic.cs 프로젝트: yazici/FRONTIERS
 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;
 }