private GameObject BuildPlacementChunk() { Main.LogDebug($"[ChunkTypeBuilder.{contractTypeBuilder.ContractTypeKey}] Building 'BuildPlacementChunk' Chunk"); SwapPlacementChunkLogic swapPlacementChunk = ChunkFactory.CreateSwapPlacementChunk(this.name, contractTypeBuilder.EncounterLayerGo.transform); SetupChunk(swapPlacementChunk); return(swapPlacementChunk.gameObject); }
public static SwapPlacementChunkLogic CreateSwapPlacementChunk(string name = "Chunk_SwapPlacement", Transform parent = null) { GameObject swapPlacementChunkGo = CreateGameObjectWithParent(name, parent); SwapPlacementChunkLogic swapPlacementChunkLogic = swapPlacementChunkGo.AddComponent <SwapPlacementChunkLogic>(); swapPlacementChunkLogic.encounterObjectName = name; return(swapPlacementChunkLogic); }
private GameObject BuildPlacementChunk() { Main.LogDebug($"[ChunkTypeBuilder.{contractTypeBuilder.ContractTypeKey}] Building 'BuildPlacementChunk' Chunk"); SwapPlacementChunkLogic swapPlacementChunk = ChunkFactory.CreateSwapPlacementChunk(this.name, contractTypeBuilder.EncounterLayerGo.transform); swapPlacementChunk.encounterObjectGuid = this.guid; if (controlledByContract) { swapPlacementChunk.startingStatus = EncounterObjectStatus.ControlledByContract; } return(swapPlacementChunk.gameObject); }