コード例 #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;
 }