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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }