예제 #1
0
        public static SwapPlacementGameLogic CreateSwapSpawn(GameObject parent, string name, string guid, string targetGuid1, string targetGuid2)
        {
            GameObject spawnSwapGameObject = CreateGameObject(parent, name);

            SwapPlacementGameLogic swapSpawnGameLogic = spawnSwapGameObject.AddComponent <SwapPlacementGameLogic>();

            swapSpawnGameLogic.encounterObjectGuid = guid;
            swapSpawnGameLogic.swapTarget1Guid     = targetGuid1;
            swapSpawnGameLogic.swapTarget2Guid     = targetGuid2;

            return(swapSpawnGameLogic);
        }
예제 #2
0
 private void BuildSwapPlacement()
 {
     SwapPlacementGameLogic swapSpawnLogic = PlacementFactory.CreateSwapSpawn(this.parent, this.name, Guid.NewGuid().ToString(), this.targetGuid1, this.targetGuid2);
 }