PlacingBuilding
Class in SurvivEngine.Entities.Buildings namespace
Inherits from UnityEngine.MonoBehaviour
Class in SurvivEngine.Entities.Buildings namespace
Inherits from UnityEngine.MonoBehaviour
Utility component used when placing buildings in the world.
Handles placement and mesh display of building.
Is the player currently placing a building?
Begins placement behaviour with the given building prefab.
Performs the given action on place.
onPlacedAction A successful placement callback using the placement position and rotation.
buildingPrefab The building prefab to spawn when the building is placed.
Triggers final placement behaviour and returns control to the player.
Sets the placing building's position and rotation, and returns the validity of placement at this location.
pos The position to move placement to.
rotation The rotation to rotate placement to.
canPlace Whether or not this location is valid for placing.