Example #1
0
 public override void HandlePrimaryAction()
 {
     if (placementHelper.CorrectLocation)
     {
         var structureComponent = placementHelper.PrepareForPlacement();
         structureComponent.SetData(controllerReference.inventorySystem.selectedStructureData);
         placementHelper.enabled = false;
         controllerReference.inventorySystem.RemoveSelectedStructureFromInventory();
         controllerReference.buildingPlacementStroage.SaveStructureReference(structureComponent);
         HandleEscapeInput();
     }
 }