- Floor markers now properly detect correct/incorrect placements.
- Implemented correct/incorrect sounds.
This commit is contained in:
@@ -2,10 +2,6 @@
|
||||
using UdonSharp;
|
||||
using UnityEngine;
|
||||
using VRC.SDK3.Data;
|
||||
using VRC.SDK3.UdonNetworkCalling;
|
||||
using VRC.Udon.Common.Interfaces;
|
||||
using VRC.SDKBase;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
|
||||
public enum ContinentMap
|
||||
@@ -27,7 +23,7 @@ public class GameManagerRound3 : GameManagerBase
|
||||
|
||||
[SerializeField] private AudioManager _AudioManager;
|
||||
|
||||
private ContinentMap _ActiveMap;
|
||||
private ContinentMap _ActiveMap = ContinentMap.Africa;
|
||||
private DataDictionary _ContinentData;
|
||||
private int _StageIndex = 0;
|
||||
|
||||
@@ -46,10 +42,14 @@ public class GameManagerRound3 : GameManagerBase
|
||||
|
||||
if (_ContinentData.ContainsKey("Continent"))
|
||||
{
|
||||
_ActiveMap = (ContinentMap)_ContinentData["Continent"].Number;
|
||||
_ActiveMap = (ContinentMap)(int)_ContinentData["Continent"].Number;
|
||||
for (int i = 0; i < _Maps.Length; i++)
|
||||
{
|
||||
//_Maps[i].gameObject.SetActive(i == (int)_ActiveMap);
|
||||
FloorMap Map = _Maps[(int)_ActiveMap];
|
||||
if (Map != null)
|
||||
{
|
||||
Map.gameObject.SetActive(i == (int)_ActiveMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -69,15 +69,14 @@ public class GameManagerRound3 : GameManagerBase
|
||||
}
|
||||
|
||||
|
||||
public bool ConfirmChoice(string Country, string City)
|
||||
public string GetCurrentCountry()
|
||||
{
|
||||
if (Country == _Maps[(int)_ActiveMap].GetCurrentCountry() &&
|
||||
City == _Maps[(int)_ActiveMap].GetCurrentCity())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return _Maps[(int)_ActiveMap].GetCurrentCountry();
|
||||
}
|
||||
|
||||
return false;
|
||||
public string GetCurrentCity()
|
||||
{
|
||||
return _Maps[(int)_ActiveMap].GetCurrentCity();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user