AquaSphereMini.HUD.BuildConstruction C# (CSharp) Method

BuildConstruction() public method

Build a construction. This function is called when the user clicks on the "BUILD" button in the build selection panel. The function will change the icon to the selected consturction model and will hide the build panels. Parameter is the name of the button.
public BuildConstruction ( string param ) : void
param string
return void
		public void BuildConstruction(string param)
		{
			CloseAllSubmenus();

			Debug.Log("<color=yellow> ++++++++   build const</color>");
			
			if(param == "btn_Build_1")
			{
				GameManager.Instance.Event(
					"NANOCUBE",
					"NANOCUBE",
					"addSoilShrimpGravel");
			}
			else if (param == "btn_Build_2")
			{
				GameManager.Instance.Event(
					"NANOCUBE",
					"NANOCUBE",
					"addSoilDeponit");
			}
			else if (param == "btn_Build_3")
			{
				GameManager.Instance.Event(
					"NANOCUBE",
					"NANOCUBE",
					"addWater");
			}
			else if (param == "btn_FloraBuild_1")
			{
				GameManager.Instance.Event(
					"NANOCUBE",
					"NANOCUBE",
					"addLudwigia");
			}
			else if (param == "btn_FaunaBuild_1")
			{
				GameManager.Instance.Event(
					"NANOCUBE",
					"NANOCUBE",
					"addRedBee");
			}
		}//BuildConstruction()