base game UI integrated

This commit is contained in:
2022-08-27 21:17:09 +05:30
parent 675cb9c759
commit 09cc2b9b89
668 changed files with 23237 additions and 13173 deletions

View File

@@ -36,8 +36,11 @@ public class Building : MonoBehaviour
void ToggleOutlines(bool value){
bool isMoving = Selector.movingBuilding==this;
foreach(Outline outline in outlines){
outline.enabled = value;
outline.OutlineColor = (isMoving) ? Color.green : Color.yellow;
// outline.enabled = value;
outline.enabled=true;
outline.OutlineColor = value ? Color.yellow : new Color(0.68f,0.68f,0.68f);
outline.OutlineWidth = 5;
// outline.OutlineColor = (isMoving) ? Color.green : Color.yellow;
}
}