Implement MVP for the statue decoration minigame (#65)
MVP implemented with: - placing, removing etc. decorations - saving the state, displaying it on the map, restoring when game restarts - saving screenshots to folder on device Co-authored-by: Michal Pikulski <michal@foolhardyhorizons.com> Co-authored-by: Michal Pikulski <michal.a.pikulski@gmail.com> Reviewed-on: #65
This commit is contained in:
@@ -103,7 +103,8 @@ namespace UI
|
||||
public GameObject eagleEye;
|
||||
public GameObject ramaSjangButton;
|
||||
public GameObject scrabBookButton;
|
||||
|
||||
public GameObject pauseButton;
|
||||
|
||||
[HideInInspector] public Image cinematicSprites;
|
||||
[HideInInspector] public Image cinematicBackgroundSprites;
|
||||
[HideInInspector] public GameObject currentCinematicPlayer;
|
||||
@@ -235,9 +236,12 @@ namespace UI
|
||||
case "Quarry":
|
||||
currentUIMode = UIMode.Puzzle;
|
||||
break;
|
||||
case "DivingForPictures" or "CardQualityControl" or "BirdPoop" or "StatueDecoration":
|
||||
case "DivingForPictures" or "CardQualityControl" or "BirdPoop":
|
||||
currentUIMode = UIMode.Minigame;
|
||||
break;
|
||||
case "StatueDecoration":
|
||||
currentUIMode = UIMode.HideAll;
|
||||
break;
|
||||
}
|
||||
|
||||
ShowAllHud();
|
||||
@@ -336,6 +340,10 @@ namespace UI
|
||||
}
|
||||
break;
|
||||
case UIMode.HideAll:
|
||||
eagleEye.SetActive(false);
|
||||
ramaSjangButton.SetActive(false);
|
||||
scrabBookButton.SetActive(false);
|
||||
pauseButton.SetActive(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user