fix game menu buttons not toggle visibility
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user