private GameObject BuildPlayerLanceChunk() { Main.LogDebug($"[ChunkTypeBuilder.{contractTypeBuilder.ContractTypeKey}] Building 'PlayerLance' Chunk"); PlayerLanceChunkGameLogic playerLanceChunkGameLogic = ChunkFactory.CreatePlayerLanceChunk(this.name, contractTypeBuilder.EncounterLayerGo.transform); SetupChunk(playerLanceChunkGameLogic); return(playerLanceChunkGameLogic.gameObject); }
public static PlayerLanceChunkGameLogic CreatePlayerLanceChunk(string name = "Chunk_PlayerLance", Transform parent = null) { GameObject playerLanceChunk = CreateGameObjectWithParent(name, parent); PlayerLanceChunkGameLogic playerLanceChunkGameLogic = playerLanceChunk.AddComponent <PlayerLanceChunkGameLogic>(); playerLanceChunkGameLogic.encounterObjectName = name; return(playerLanceChunkGameLogic); }
// TODO: If the below methods continue to be the same then I should extract them out into a generics method private GameObject BuildPlayerLanceChunk() { Main.LogDebug($"[ChunkTypeBuilder.{contractTypeBuilder.ContractTypeKey}] Building 'PlayerLance' Chunk"); PlayerLanceChunkGameLogic playerLanceChunkGameLogic = ChunkFactory.CreatePlayerLanceChunk(this.name, contractTypeBuilder.EncounterLayerGo.transform); playerLanceChunkGameLogic.encounterObjectGuid = this.guid; if (controlledByContract) { playerLanceChunkGameLogic.startingStatus = EncounterObjectStatus.ControlledByContract; } return(playerLanceChunkGameLogic.gameObject); }