I did a whole goddamn tutorial holy shit

This commit is contained in:
Texel 2020-08-22 14:49:29 -04:00
parent 3679c11e41
commit d5bacca7f2
15 changed files with 3380 additions and 2 deletions

View file

@ -30,6 +30,8 @@ public class GameBoardInstance : MonoBehaviour {
}
private void Update() {
if (GameTransition.Instance == null) return;
var state = GameTransition.Instance.state;
if (state == GameState.InGame && !endGameCoroutine){
var over = player1.delayState == GameBoard.DelayState.Loss || player2.delayState == GameBoard.DelayState.Loss;

View file

@ -34,11 +34,11 @@ public class GameBoardRender : MonoBehaviour {
switch(board.desiredAnimation) {
case GameBoard.AnimationName.Happy:
soonestChangeTime = Time.time + 3f;
soonestChangeTime = Time.time + 5f;
enableHappy = true;
break;
case GameBoard.AnimationName.Sad:
soonestChangeTime = Time.time + 2f;
soonestChangeTime = Time.time + 5f;
enableSad = true;
break;
case GameBoard.AnimationName.Idle:

View file

@ -0,0 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ButtonHelp : ButtonOnClick {
public override void OnClick() {
Application.LoadLevel(1);
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 62d2a91b62e06c04cb0f877e535b187e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: