- Maps now properly reset when randomised.
- Some countries are now "hard mode" options, and are not chosen by default. - Map dot switched to a quad to save on triangles. - Map borders SDF updated to be more repeatable when making new maps. - Added looping options to SFX. - Added a "Carmen In Jail" SFX event. - Added a curved TV monitor model for video player. - Added a loot image URL setting for the case list entries.
This commit is contained in:
@@ -21,13 +21,17 @@ public class FloorMap : UdonSharpBehaviour
|
||||
public void RandomiseCountries()
|
||||
{
|
||||
_CurrentCountry = 0;
|
||||
for (int i = 0; i < Countries.Length; i++)
|
||||
{
|
||||
Countries[i].gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
UnityEngine.Random.InitState(Networking.GetServerTimeInMilliseconds());
|
||||
|
||||
int[] NewRandomCountries = new int[MAX_SELECTED_COUNTRIES];
|
||||
int[] NewRandomCities = new int[MAX_SELECTED_COUNTRIES];
|
||||
|
||||
// Fill the countries array with values too big to be considered valid.
|
||||
// Fill the countries array with a value too big to be valid.
|
||||
int NumberOfCountries = Countries.Length;
|
||||
for (int i = 0; i < MAX_SELECTED_COUNTRIES; i++)
|
||||
{
|
||||
@@ -37,7 +41,7 @@ public class FloorMap : UdonSharpBehaviour
|
||||
for (int i = 0; i < MAX_SELECTED_COUNTRIES; i++)
|
||||
{
|
||||
int NewPulledIndex = NumberOfCountries;
|
||||
while (CountryIsAlreadyInArray(NewRandomCountries, NewPulledIndex))
|
||||
while (CountryIsAlreadyInArray(NewRandomCountries, NewPulledIndex) || Countries[NewPulledIndex].HardModeSelection)
|
||||
{
|
||||
NewPulledIndex = UnityEngine.Random.Range(0, NumberOfCountries);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,61 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
Data: 2
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: HardModeSelection
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: HardModeSelection
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 3|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: System.Boolean, mscorlib
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 3
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
- Name:
|
||||
Entry: 6
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <IsSerialized>k__BackingField
|
||||
Entry: 5
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 4|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
@@ -53,13 +107,13 @@ MonoBehaviour:
|
||||
Data: Locations
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 2|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
Data: 5|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: Locations
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 3|System.RuntimeType, mscorlib
|
||||
Data: 6|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: FloorMapLocation[], Assembly-CSharp
|
||||
@@ -68,7 +122,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 4|System.RuntimeType, mscorlib
|
||||
Data: 7|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: UnityEngine.Component[], UnityEngine.CoreModule
|
||||
@@ -89,7 +143,7 @@ MonoBehaviour:
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 5|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
Data: 8|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 0
|
||||
|
||||
@@ -8,5 +8,6 @@ using VRC.Udon;
|
||||
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
|
||||
public class FloorMapCountry : UdonSharpBehaviour
|
||||
{
|
||||
public bool HardModeSelection = false;
|
||||
public FloorMapLocation[] Locations;
|
||||
}
|
||||
|
||||
@@ -204,6 +204,8 @@ public class FloorMapMarker : UdonSharpBehaviour
|
||||
{
|
||||
transform.position = CorrectLocation;
|
||||
}
|
||||
|
||||
LocationFindingEnabled = false;
|
||||
}
|
||||
|
||||
private bool IsUpright()
|
||||
|
||||
Reference in New Issue
Block a user