fix game menu buttons not toggle visibility

This commit is contained in:
Kevin Ngo
2018-10-17 02:58:00 -07:00
parent 8bcd5358a9
commit 3220b3f1e2

View File

@@ -29,22 +29,26 @@
id="resumeButton"
mixin="gameMenuButton"
bind-toggle__raycastable="isPaused"
bind__visible="isPaused"
position="0 0.35 0"
proxy-event="event: click; to: a-scene; as: gamemenuresume"
bind__visible="!isGameOver">
proxy-event="event: click; to: a-scene; as: gamemenuresume">
<a-entity mixin="gameMenuButtonText" text="value: RESUME"></a-entity>
</a-entity>
<a-entity
id="restartButton"
bind-toggle__raycastable="isPaused || isGameOver"
bind-visible="isPaused || isGameOver"
mixin="gameMenuButton"
proxy-event="event: click; to: a-scene; as: gamemenurestart">
<a-entity mixin="gameMenuButtonText" text="value: RESTART SONG"></a-entity>
</a-entity>
<a-entity
id="exitButton"
mixin="gameMenuButton"
bind-toggle__raycastable="isPaused || isGameOver || isVictory"
bind-visible="isPaused || isGameOver || isVictory"
position="0 -0.35 0"
proxy-event="event: click; to: a-scene; as: gamemenuexit">
<a-entity mixin="gameMenuButtonText" text="value: EXIT TO MENU"></a-entity>