-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: start, next & prepare overlays scripting
- Loading branch information
David Arutiunian
committed
Jun 2, 2020
1 parent
a1ed90b
commit 3833494
Showing
100 changed files
with
2,917 additions
and
512 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using UnityEngine; | ||
|
||
public class FailState : BaseGameState | ||
{ | ||
public FailState(MonoBehaviour behaviour, GameContext game) : base(behaviour, game) | ||
{ | ||
} | ||
|
||
public override void Unbind() | ||
{ | ||
game.FailOverlay.SetActive(false); | ||
} | ||
|
||
protected override void DoOnStart() | ||
{ | ||
game.FailOverlay.SetActive(true); | ||
Debug.Log($"========== FailState LEVEL={GameStore.instance.GetAbsoluteWeight() + 1} STEP={GameStore.instance.step} =========="); | ||
} | ||
|
||
protected override void DoOnUpdate() | ||
{ | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
Assets/Scripts/RestartHandler.cs.meta → Assets/Scripts/FailState.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.