fix: menu interactability

This commit is contained in:
Gerard Gascón 2025-02-02 23:54:54 +01:00
parent 6fbc7c3259
commit c5e4609101
12 changed files with 32113 additions and 22 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -194,7 +194,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 214709389}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0

View file

@ -17,6 +17,7 @@ public class Interface : MonoBehaviour {
private void Start() {
gameOver.alpha = 0;
gameOver.interactable = false;
}
public void PlacePiece() {
@ -32,7 +33,7 @@ public class Interface : MonoBehaviour {
return;
_dead = true;
gameOver.DOFade(1f, 1f);
gameOver.DOFade(1f, 1f).OnComplete(() => gameOver.interactable = true);
}
public void Retry() {