|
|
|
@ -2,9 +2,11 @@ using System; |
|
|
|
|
using System.Collections; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using System.Linq; |
|
|
|
|
using Global; |
|
|
|
|
using Unity.Netcode; |
|
|
|
|
using Unity.VisualScripting; |
|
|
|
|
using UnityEngine; |
|
|
|
|
using UnityEngine.SceneManagement; |
|
|
|
|
using UnityEngine.UIElements; |
|
|
|
|
|
|
|
|
|
namespace Game { |
|
|
|
@ -110,6 +112,9 @@ namespace Game { |
|
|
|
|
public void GainScore() { |
|
|
|
|
Score++; |
|
|
|
|
UpdatePanel(); |
|
|
|
|
if (Score == (RoomSettings.WinScore == WinScore.Custom ? RoomSettings.CustomWinScore : 20)) { |
|
|
|
|
SceneManager.LoadScene("Main"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void UpdatePanel() { |
|
|
|
|