added comments of bug on script and added basic menus, will need functioning selecting to complete them

This commit is contained in:
Lorenzo
2022-04-04 16:00:54 +02:00
parent 0ace8baa66
commit c5c5693078
331 changed files with 60678 additions and 805 deletions

View File

@@ -4,7 +4,7 @@ using UnityEngine;
public class Building : MonoBehaviour
{
public string buildingName = "building01";
public string buildingName;
public Outline outline;
void Awake(){
@@ -17,5 +17,21 @@ public class Building : MonoBehaviour
if(Selector.selectedBuilding == null){outline.enabled=false; return;}
outline.enabled = Selector.selectedBuilding == this;
Debug.Log(buildingName); // this function debugs 4 names and not always the one u clicked.
// SetRightUpgradeButton(); // function to let the button know what menu to open, also runs 4+ times.
}
/* void SetRightUpgradeButton(){
switch (buildingName)
{
case "Research Facility":
Debug.Log("research facility menu");
break;
case "Green House":
Debug.Log("green house menu");
break;
}
} */
}