Postgame updates

Added models to post game scene
This commit is contained in:
Vincent Wheat
2022-04-27 16:20:39 -05:00
parent 469953bf16
commit 72ed4e2cd9
4 changed files with 10546 additions and 57 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@ public class Bumper : MonoBehaviour {
void OnTriggerEnter(Collider objectHit) {
if (objectHit.gameObject.tag == "ArcherTarget") {//Checks if the other object is the player
Debug.Log("Bump");
//Debug.Log("Bump");
MoveStateManager playerMovement = objectHit.GetComponent<MoveStateManager>();
Vector3 dirBump = objectHit.transform.position - transform.position;

View File

@@ -41,28 +41,39 @@ public class PostGameUI : NetworkBehaviour {
}
}
}
bool[] active = { false, false, false };
if (winnerCount > 0) {
// Runners win
switch (winnerCount) {
case 1:
winText = "And the winner is the Runner " + playerFinishedNames[0] + "!";
active[1] = true;
player1.SetActive(active[1]);
break;
case 2:
winText = "And the winners are the Runners " + playerFinishedNames[0] + " and " + playerFinishedNames[1] + "!";
active[1] = true;
active[2] = true;
player1.SetActive(active[1]);
player2.SetActive(active[2]);
break;
}
} else {
// King wins
winText = "And the winner is King " + kingName + "!";
active[0] = true;
king.SetActive(active[0]);
}
UpdateWinnerTextClientRPC(winText);
UpdateWinnerTextClientRPC(winText, active);
}
[ClientRpc]
private void UpdateWinnerTextClientRPC(string winnerText) {
private void UpdateWinnerTextClientRPC(string winnerText, bool[] active) {
HeaderText.text = winnerText;
king.SetActive(active[0]);
player1.SetActive(active[1]);
player2.SetActive(active[2]);
}
IEnumerator BeginCountdown() {

View File

@@ -6,34 +6,34 @@ EditorUserSettings:
serializedVersion: 4
m_ConfigSettings:
RecentlyUsedScenePath-0:
value: 22424703114646680e0b0227036c6f1f05033f2b212d68252320092a
flags: 0
RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
flags: 0
RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c6f1f05033f2b212d68252320092a
flags: 0
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c6b19021b1d192f2d2835633c133af6f9
flags: 0
RecentlyUsedScenePath-4:
value: 22424703114646680e0b0227036c7000021e17243f66333e243d04
flags: 0
RecentlyUsedScenePath-5:
value: 22424703114646680e0b0227036c7c1f18030a25203b68252320092a
flags: 0
RecentlyUsedScenePath-6:
RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c7c1f18030a25203b68252320092a
flags: 0
RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c7000021e17243f66333e243d04
flags: 0
RecentlyUsedScenePath-7:
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c7000021e17243f66333e243d04
flags: 0
RecentlyUsedScenePath-4:
value: 22424703114646680e0b0227036c731f1415016439262f2434
flags: 0
RecentlyUsedScenePath-5:
value: 22424703114646680e0b0227036c78111b125507233d28242c20137df7ee3d2cfb
flags: 0
RecentlyUsedScenePath-6:
value: 22424703114646680e0b0227036c6f1f05033f2b212d68252320092a
flags: 0
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c6f1f05033f2b212d68252320092a
flags: 0
RecentlyUsedScenePath-8:
value: 22424703114646680e0b0227036c6f02131b172b282d347e38271427fb
flags: 0
RecentlyUsedScenePath-9:
value: 22424703114646680e0b0227036c7b151b180b6501273035202c1327d1e33136e7a923e7ee2e26
value: 22424703114646680e0b0227036c6f1f05033f2b212d68252320092a
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650