Build

public class Build

This class allows players to build base.

You can use it directly from code. For example, here you can see, how to enable build mode on B key press with specific building selected.

[SerializeField] GameObject buildingToCreate;

void Update()
{
  if (Input.GetKeyDown(KeyCode.B))
  {
    GameController.Instance.Build.EnableBuildMode(buildingToCreate);
  }
}