feature: Added menu functionality
This commit is contained in:
parent
3b730311fc
commit
38c0bcaef4
9 changed files with 134 additions and 247 deletions
|
@ -14,12 +14,19 @@ namespace Flow {
|
|||
UpdateFill();
|
||||
}
|
||||
|
||||
public void AddProgress() {
|
||||
public bool AddProgress() {
|
||||
_progressDone++;
|
||||
|
||||
if (_progressDone <= numberToWin) {
|
||||
UpdateFill();
|
||||
}
|
||||
|
||||
if (_progressDone >= numberToWin) {
|
||||
FindObjectOfType<WinScreen>().Win();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private void UpdateFill() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue