added comments of bug on script and added basic menus, will need functioning selecting to complete them
This commit is contained in:
@@ -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;
|
||||
}
|
||||
} */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user