Add level selection system. Add levels upto jester
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d93a8a12ea0f403088d1e901fd4f719
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 8
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"doors": [
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "DEATH"
|
||||
},
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "LIFE"
|
||||
}
|
||||
],
|
||||
"guards": [
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "TRUTHER"
|
||||
}
|
||||
],
|
||||
"doorsmods": [
|
||||
"BLUE",
|
||||
"RED"
|
||||
],
|
||||
"introdialog": "Come forward and speak to me child",
|
||||
"dialog": {
|
||||
"is": {
|
||||
"DOORS": {
|
||||
"safe": "DS#safe",
|
||||
"unsafe": "DS#safe!"
|
||||
},
|
||||
"GUARDS_YOU": {
|
||||
"telling the truth": "GS#truth"
|
||||
}
|
||||
},
|
||||
"why": {
|
||||
"am i here": "$You are here to see the king, of course.",
|
||||
"should i trust you": "$We've known each other for years, child. Why ever would I lie?"
|
||||
},
|
||||
"how": {
|
||||
"can I succeed in my quest": "$You must pass through a series of rooms like these, although all the guards are not as truthful as I"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86e28776c13147d9bd080e6de1cdb341
|
||||
timeCreated: 1787753803
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"doors": [
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "LIFE"
|
||||
}
|
||||
],
|
||||
"guards": [
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "TRUTHER"
|
||||
},
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "LIAR"
|
||||
}
|
||||
],
|
||||
"guardsmods": [
|
||||
"HAT",
|
||||
"SHORT"
|
||||
],
|
||||
"introdialog": "One of us is lying, o small one",
|
||||
"dialog": {
|
||||
"is": {
|
||||
"DOORS": {
|
||||
"safe": "DS#safe",
|
||||
"unsafe": "DS#safe!"
|
||||
},
|
||||
"GUARDS_YOU": {
|
||||
"telling the truth": "GS#truth"
|
||||
}
|
||||
},
|
||||
"NOREC_what would": {
|
||||
"GUARDS": {
|
||||
"answer to:": {
|
||||
"QUESTION": "GS%"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f78bbb342dea4ec99bbba80352d8414e
|
||||
timeCreated: 1787766018
|
||||
@@ -17,10 +17,6 @@
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "TRUTHER"
|
||||
},
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "JOKER"
|
||||
}
|
||||
],
|
||||
"guardsmods": [
|
||||
@@ -31,6 +27,7 @@
|
||||
"BLUE",
|
||||
"RED"
|
||||
],
|
||||
"introdialog": "Our time is limited, try and be quick",
|
||||
"dialog": {
|
||||
"is": {
|
||||
"DOORS": {
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"doors": [
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "DEATH"
|
||||
},
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "LIFE"
|
||||
}
|
||||
],
|
||||
"guards": [
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "LIAR"
|
||||
},
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "TRUTHER"
|
||||
}
|
||||
],
|
||||
"guardsmods": [
|
||||
"HAT",
|
||||
"SHORT"
|
||||
],
|
||||
"doorsmods": [
|
||||
"BLUE",
|
||||
"RED"
|
||||
],
|
||||
"introdialog": "State your name!",
|
||||
"dialog": {
|
||||
"is": {
|
||||
"DOORS": {
|
||||
"safe": "DS#safe",
|
||||
"unsafe": "DS#safe!"
|
||||
},
|
||||
"GUARDS_YOU": {
|
||||
"short": "$I do not know, for I am blind",
|
||||
"wearing a hat": "$I do not know, for I am blind"
|
||||
}
|
||||
},
|
||||
"NOREC_what would": {
|
||||
"GUARDS": {
|
||||
"answer to:": {
|
||||
"QUESTION": "GS%"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e3c3c27c43074c7597488e63bdf8ef5b
|
||||
timeCreated: 1787767026
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"doors": [
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "DEATH"
|
||||
},
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "LIFE"
|
||||
}
|
||||
],
|
||||
"guards": [
|
||||
{
|
||||
"type": "HORSE",
|
||||
"action": "LIAR"
|
||||
},
|
||||
{
|
||||
"type": "HORSE",
|
||||
"action": "TRUTHER"
|
||||
}
|
||||
],
|
||||
"guardsmods": [
|
||||
"#LEFTHORSE",
|
||||
"#RIGHTHORSE"
|
||||
],
|
||||
"doorsmods": [
|
||||
"BLUE",
|
||||
"RED"
|
||||
],
|
||||
"dialog": {
|
||||
"is": {
|
||||
"DOORS": {
|
||||
"safe": "DS#safe",
|
||||
"unsafe": "DS#safe!"
|
||||
},
|
||||
"GUARDS_YOU": {
|
||||
"a horse": "GS#horse"
|
||||
}
|
||||
},
|
||||
"NOREC_what would": {
|
||||
"GUARDS": {
|
||||
"answer to:": {
|
||||
"QUESTION": "GS%"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"globalmod": "HORSE"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ba1491028f384c599af8d312d948b667
|
||||
timeCreated: 1787767544
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"doors": [
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "DEATH"
|
||||
},
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "DEATH"
|
||||
},
|
||||
{
|
||||
"type": "DEFAULT",
|
||||
"action": "LIFE"
|
||||
}
|
||||
],
|
||||
"guards": [
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "LIAR"
|
||||
},
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "TRUTHER"
|
||||
},
|
||||
{
|
||||
"type": "BASE",
|
||||
"action": "JOKER"
|
||||
}
|
||||
],
|
||||
"guardsmods": [
|
||||
"HAT",
|
||||
"SHORT"
|
||||
],
|
||||
"doorsmods": [
|
||||
"BLUE",
|
||||
"RED"
|
||||
],
|
||||
"introdialog": "Be WARNED, one of us lies with no pattern or reason",
|
||||
"dialog": {
|
||||
"is": {
|
||||
"DOORS": {
|
||||
"safe": "DS#safe",
|
||||
"unsafe": "DS#safe!"
|
||||
},
|
||||
"GUARDS_YOU": {
|
||||
"short": "GS#short",
|
||||
"wearing a hat": "GS#hat"
|
||||
}
|
||||
},
|
||||
"NOREC_what would": {
|
||||
"GUARDS": {
|
||||
"answer to:": {
|
||||
"QUESTION": "GS%"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8aa8b1537c54d6a91f84f42c5242517
|
||||
timeCreated: 1787743508
|
||||
@@ -0,0 +1,130 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &3986278427006718258
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6261725771962263685}
|
||||
- component: {fileID: 8761043386567898315}
|
||||
- component: {fileID: 2331016541601695679}
|
||||
- component: {fileID: 7866095202227853034}
|
||||
- component: {fileID: 6200014345068414905}
|
||||
m_Layer: 0
|
||||
m_Name: HorsePrefab
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &6261725771962263685
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3986278427006718258}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: -0.9996754, z: 0, w: 0.025479078}
|
||||
m_LocalPosition: {x: 0.8128, y: 2.46, z: -1.08899}
|
||||
m_LocalScale: {x: 2.43, y: 1.53, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: -177.08, z: 0}
|
||||
--- !u!33 &8761043386567898315
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3986278427006718258}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &2331016541601695679
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3986278427006718258}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||
m_RayTracingAccelStructBuildFlags: 1
|
||||
m_SmallMeshCulling: 1
|
||||
m_ForceMeshLod: -1
|
||||
m_MeshLodSelectionBias: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 33348f33cbb633672b175f652bb27316, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_GlobalIlluminationMeshLod: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_MaskInteraction: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!65 &7866095202227853034
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3986278427006718258}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1, y: 1, z: 1}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &6200014345068414905
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3986278427006718258}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 20061c4fba047435b84052ea7566f8cf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: '::'
|
||||
type:
|
||||
mod:
|
||||
hat: {fileID: 6200270703225525303, guid: cee82d5174017241c83d924312623806, type: 3}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e77f8bd372b8a2bf1a150584a7b697d7
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f1ceeb1330e71ab1978f4e9cb09a4b2
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -189,6 +189,9 @@ public class DialogManager : Singleton<DialogManager>
|
||||
public void SubmitButtonPress()
|
||||
{
|
||||
AudioManager.Instance.PlaySound("Select");
|
||||
|
||||
var FullQuestionCopt = FullQuestion + "";
|
||||
|
||||
//formulate query string in format PERPSECTIVE%ITEM#PROPERTY
|
||||
//slightly wack way of doing it, hoping it is future proof
|
||||
while (FullQuestionPrefixes.Count > 0)
|
||||
@@ -228,18 +231,31 @@ public class DialogManager : Singleton<DialogManager>
|
||||
|
||||
Debug.Log(FullQuestion);
|
||||
|
||||
//now get a response from the guard being questioned
|
||||
var response = currentGuard.Answer(FullQuestion);
|
||||
|
||||
|
||||
|
||||
r = r.Replace("NOREC_", "");
|
||||
|
||||
if (!r.Contains(":"))
|
||||
{
|
||||
r = Regex.Replace(
|
||||
r,
|
||||
@"^is\s+(?:\S+\s+)*guard\s+\(you\)",
|
||||
@"is.*\(you\)",
|
||||
"are you",
|
||||
RegexOptions.IgnoreCase
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var response = FullQuestionCopt;
|
||||
if (!FullQuestion.Contains("$"))
|
||||
{
|
||||
//now get a response from the guard being questioned
|
||||
response = currentGuard.Answer(FullQuestion).ToRandomString();
|
||||
|
||||
}
|
||||
|
||||
response = response.Replace("$", "");
|
||||
|
||||
string responsePrefix = "";
|
||||
if (FullQuestion.Contains("%"))
|
||||
@@ -250,7 +266,7 @@ public class DialogManager : Singleton<DialogManager>
|
||||
SpeechManager.Instance.StartText(new[]
|
||||
{
|
||||
new KeyValuePair<string, string>(r, "PLAYER"),
|
||||
new KeyValuePair<string, string>(responsePrefix + response.ToRandomString(), "GUARD")
|
||||
new KeyValuePair<string, string>(responsePrefix + response, "GUARD")
|
||||
});
|
||||
|
||||
reset();
|
||||
|
||||
@@ -84,6 +84,7 @@ public class DoorManager : MonoBehaviour, IDescribable
|
||||
{
|
||||
return $"the {mod} door";
|
||||
} // add more modification here
|
||||
throw new NotImplementedException();
|
||||
|
||||
return "the door";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using Utils;
|
||||
|
||||
public class GlobalStateManager : Singleton<GlobalStateManager>
|
||||
{
|
||||
public int MenuIntended = 0;
|
||||
public int LevelIntended;
|
||||
|
||||
|
||||
public int HighestLevel;
|
||||
|
||||
public List<TextAsset> levels;
|
||||
|
||||
//aaaaa theres nicer syntax for this i think
|
||||
protected override bool dontDestroyOnLoad()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
HighestLevel = PlayerPrefs.GetInt("HighestLevel", 0);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void SetLevelCompleted(int level)
|
||||
{
|
||||
if (level > HighestLevel)
|
||||
{
|
||||
PlayerPrefs.SetInt("HighestLevel", level);
|
||||
PlayerPrefs.Save();
|
||||
|
||||
LevelIntended = level + 1;
|
||||
//Reload game scene to start next level??
|
||||
SceneManager.LoadScene(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
//playing old level so load level select
|
||||
MenuIntended = 1;
|
||||
SceneManager.LoadScene(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void PlayNewestLevel()
|
||||
{
|
||||
LevelIntended = HighestLevel;
|
||||
//load game scene
|
||||
SceneManager.LoadScene(1);
|
||||
}
|
||||
|
||||
public void LoadSpecificLevel(int level)
|
||||
{
|
||||
LevelIntended = level;
|
||||
//load game scene
|
||||
SceneManager.LoadScene(1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4ae2faa8094378b90bfa2d47351f2b2c
|
||||
@@ -133,6 +133,14 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
{
|
||||
return "the guard with the hat";
|
||||
}
|
||||
else if (mod == "#LEFTHORSE")
|
||||
{
|
||||
return "the left horse";
|
||||
}
|
||||
else if (mod == "#RIGHTHORSE")
|
||||
{
|
||||
return "the right horse";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "the plain guard";
|
||||
@@ -153,6 +161,16 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
answer = mod == "SHORT" ? QuestionAnswer.YES : QuestionAnswer.NO;
|
||||
}
|
||||
|
||||
if (property.StartsWith("truth"))
|
||||
{
|
||||
answer = type == "TRUTHER" ? QuestionAnswer.YES : QuestionAnswer.NO;
|
||||
}
|
||||
|
||||
if (property.StartsWith("horse"))
|
||||
{
|
||||
answer = QuestionAnswer.YES;
|
||||
}
|
||||
|
||||
if (property.EndsWith("!"))
|
||||
{
|
||||
//we want opposite, so switch
|
||||
|
||||
@@ -12,8 +12,6 @@ public class LevelLoader : Singleton<LevelLoader>
|
||||
[SerializeField]
|
||||
private List<GameEntry<GameObject>> GuardPrefabs;
|
||||
|
||||
[SerializeField]
|
||||
private List<TextAsset> levels;
|
||||
|
||||
[SerializeField]
|
||||
private float widthAvail = 50;
|
||||
@@ -23,10 +21,13 @@ public class LevelLoader : Singleton<LevelLoader>
|
||||
|
||||
public JObject SpeechTree { private set; get; }
|
||||
|
||||
public string GlobalModifier { private set; get; }
|
||||
|
||||
void Start()
|
||||
{
|
||||
var text = GlobalStateManager.Instance.levels[GlobalStateManager.Instance.LevelIntended].ToString();
|
||||
//load level data
|
||||
var data = JsonUtility.FromJson<LevelData>(levels[0].text);
|
||||
var data = JsonUtility.FromJson<LevelData>(text);
|
||||
|
||||
//shuffle for randomness
|
||||
data.doors.Shuffle();
|
||||
@@ -55,16 +56,35 @@ public class LevelLoader : Singleton<LevelLoader>
|
||||
|
||||
var manager = guardinstance.GetComponent<GuardManager>();
|
||||
manager.type = data.guards[i].action;
|
||||
|
||||
if (data.guardsmods[0].StartsWith("#"))
|
||||
{
|
||||
manager.mod = data.guardsmods.GetTopAndRemove();
|
||||
}
|
||||
else
|
||||
{
|
||||
manager.mod = data.guardsmods.GetRandomAndRemove();
|
||||
}
|
||||
|
||||
Guards.Add(manager);
|
||||
}
|
||||
|
||||
|
||||
//dynamic dialog tree
|
||||
SpeechTree = JObject.Parse(levels[0].text)["dialog"] as JObject;
|
||||
SpeechTree = JObject.Parse(text)["dialog"] as JObject;
|
||||
|
||||
StatusManager.Instance.PopulatePanels();
|
||||
|
||||
if (data.introdialog != null)
|
||||
{
|
||||
SpeechManager.Instance.StartText(new[]
|
||||
{
|
||||
new KeyValuePair<string, string>(data.introdialog, "GUARD")
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
GlobalModifier = data.globalmod;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Utils;
|
||||
|
||||
public class MainMenuController : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject InitMenu;
|
||||
[SerializeField] private GameObject LevelSelectMenu;
|
||||
|
||||
[SerializeField] private GameObject LevelItemPrefab;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
if (GlobalStateManager.Instance.MenuIntended == 1)
|
||||
{
|
||||
InstantiateLevelButtons();
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void OpenExternalLink(string url)
|
||||
{
|
||||
Application.OpenURL(url);
|
||||
}
|
||||
|
||||
public void Cheat(int highestLevel)
|
||||
{
|
||||
GlobalStateManager.Instance.HighestLevel = highestLevel;
|
||||
}
|
||||
|
||||
public void PlaySelect()
|
||||
{
|
||||
if (GlobalStateManager.Instance.HighestLevel >= GlobalStateManager.Instance.levels.Count)
|
||||
{
|
||||
//handle edge case of completing all the levels
|
||||
LevelSelect();
|
||||
return;
|
||||
}
|
||||
GlobalStateManager.Instance.PlayNewestLevel();
|
||||
}
|
||||
|
||||
public void LevelSelect()
|
||||
{
|
||||
InstantiateLevelButtons();
|
||||
}
|
||||
|
||||
public void BackSelect()
|
||||
{
|
||||
InitMenu.SetActive(true);
|
||||
LevelSelectMenu.SetActive(false);
|
||||
}
|
||||
|
||||
private void InstantiateLevelButtons()
|
||||
{
|
||||
InitMenu.SetActive(false);
|
||||
LevelSelectMenu.SetActive(true);
|
||||
|
||||
var parent = transform.FindChildRecursive("ADDLEVELSHERE");
|
||||
|
||||
foreach (Transform child in parent)
|
||||
{
|
||||
Destroy(child.gameObject);
|
||||
}
|
||||
|
||||
for (int i = 0; i < GlobalStateManager.Instance.levels.Count; i++)
|
||||
{
|
||||
int levelIndex = i;
|
||||
|
||||
GameObject levelButton = Instantiate(LevelItemPrefab, parent);
|
||||
|
||||
if (i <= GlobalStateManager.Instance.HighestLevel)
|
||||
{
|
||||
levelButton.GetComponentInChildren<Button>().onClick.AddListener(() => {
|
||||
|
||||
GlobalStateManager.Instance.LoadSpecificLevel(levelIndex);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
levelButton.GetComponent<Image>().color = Color.red;
|
||||
}
|
||||
levelButton.GetComponentInChildren<TextMeshProUGUI>().text = (i + 1).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 26b0d5e5fdf7d6f8096ff6f6801c65ba
|
||||
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class PauseController : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject pauseMenu;
|
||||
|
||||
public void TogglePause(bool on)
|
||||
{
|
||||
pauseMenu.SetActive(on);
|
||||
Time.timeScale = on ? 0 : 1;
|
||||
}
|
||||
|
||||
public void GoBackToMenu(int intended)
|
||||
{
|
||||
GlobalStateManager.Instance.MenuIntended = intended;
|
||||
|
||||
SceneManager.LoadScene(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b13a7ab538f05c756a8915e5bb9002fa
|
||||
@@ -13,6 +13,15 @@ namespace DefaultNamespace
|
||||
{
|
||||
public static string ToRandomString(this QuestionAnswer answer)
|
||||
{
|
||||
if (LevelLoader.Instance.GlobalModifier == "HORSE")
|
||||
{
|
||||
return answer switch
|
||||
{
|
||||
QuestionAnswer.YES => "Neigh",
|
||||
QuestionAnswer.NO => "Heigh",
|
||||
QuestionAnswer.NO_YES => "Hmph"
|
||||
};
|
||||
}
|
||||
string[] options = answer switch
|
||||
{
|
||||
QuestionAnswer.YES => new[]
|
||||
|
||||
@@ -69,12 +69,24 @@ public class SpeechManager : Singleton<SpeechManager>
|
||||
|
||||
private void NextText()
|
||||
{
|
||||
var item = textBuffer.Dequeue();
|
||||
speaker = item.Value;
|
||||
if (LevelLoader.Instance.GlobalModifier == "HORSE" && speaker == "GUARD")
|
||||
{
|
||||
Debug.LogError("HORSE");
|
||||
mainText.text = item.Key;
|
||||
playerPanel.SetActive(false);
|
||||
otherPanel.SetActive(false);
|
||||
AudioManager.Instance.PlaySound("Horse");
|
||||
return;
|
||||
}
|
||||
|
||||
Status = "TALKING";
|
||||
AudioManager.Instance.PlaySound("Select");
|
||||
var item = textBuffer.Dequeue();
|
||||
|
||||
ccoroutine = StartCoroutine(TypeTextUncapped(item.Key));
|
||||
|
||||
speaker = item.Value;
|
||||
|
||||
|
||||
if (speaker == "PLAYER")
|
||||
{
|
||||
|
||||
@@ -9,6 +9,9 @@ namespace Utils
|
||||
public List<GuardData> guards;
|
||||
public List<string> guardsmods;
|
||||
public List<string> doorsmods;
|
||||
|
||||
public string introdialog;
|
||||
public string globalmod;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
@@ -23,16 +26,5 @@ namespace Utils
|
||||
{
|
||||
public string type;
|
||||
public string action;
|
||||
|
||||
|
||||
public string GetName()
|
||||
{
|
||||
return action;
|
||||
}
|
||||
|
||||
public string GetDescription()
|
||||
{
|
||||
return "Describe " + action;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,5 +27,17 @@ namespace Utils
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
public static T GetTopAndRemove<T>(this List<T> list)
|
||||
{
|
||||
if (list.Count == 0)
|
||||
return default;
|
||||
|
||||
T item = list[0];
|
||||
|
||||
list.RemoveAt(0);
|
||||
|
||||
return item;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,14 +8,24 @@ namespace Utils
|
||||
|
||||
protected virtual void Awake()
|
||||
{
|
||||
if (Instance != null && Instance != this)
|
||||
if (dontDestroyOnLoad() && Instance != null && Instance != this)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
return;
|
||||
}
|
||||
|
||||
Instance = this as T;
|
||||
|
||||
if (dontDestroyOnLoad())
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected virtual bool dontDestroyOnLoad()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -342,6 +342,9 @@ MonoBehaviour:
|
||||
skyOcclusionIntensityMultiplier:
|
||||
m_OverrideState: 1
|
||||
m_Value: 1
|
||||
worldOffset:
|
||||
m_OverrideState: 1
|
||||
m_Value: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &-1216621516061285780
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
@@ -376,6 +379,9 @@ MonoBehaviour:
|
||||
highQualityFiltering:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
filter:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
downscale:
|
||||
m_OverrideState: 1
|
||||
m_Value: 0
|
||||
@@ -462,8 +468,6 @@ MonoBehaviour:
|
||||
- {fileID: -6288072647309666549}
|
||||
- {fileID: 7518938298396184218}
|
||||
- {fileID: -1410297666881709256}
|
||||
- {fileID: -7750755424749557576}
|
||||
- {fileID: -5139089513906902183}
|
||||
--- !u!114 &853819529557874667
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
|
||||
@@ -100,24 +100,24 @@ MonoBehaviour:
|
||||
m_Keys: []
|
||||
m_Values:
|
||||
m_PrefilteringModeMainLightShadows: 3
|
||||
m_PrefilteringModeAdditionalLight: 4
|
||||
m_PrefilteringModeAdditionalLight: 3
|
||||
m_PrefilteringModeAdditionalLightShadows: 0
|
||||
m_PrefilterXRKeywords: 1
|
||||
m_PrefilteringModeForwardPlus: 1
|
||||
m_PrefilteringModeForwardPlus: 0
|
||||
m_PrefilteringModeDeferredRendering: 0
|
||||
m_PrefilteringModeScreenSpaceOcclusion: 0
|
||||
m_PrefilterDebugKeywords: 1
|
||||
m_PrefilterWriteRenderingLayers: 1
|
||||
m_PrefilterHDROutput: 1
|
||||
m_PrefilterAlphaOutput: 0
|
||||
m_PrefilterAlphaOutput: 1
|
||||
m_PrefilterSSAODepthNormals: 1
|
||||
m_PrefilterSSAOSourceDepthLow: 1
|
||||
m_PrefilterSSAOSourceDepthMedium: 0
|
||||
m_PrefilterSSAOSourceDepthMedium: 1
|
||||
m_PrefilterSSAOSourceDepthHigh: 1
|
||||
m_PrefilterSSAOInterleaved: 0
|
||||
m_PrefilterSSAOInterleaved: 1
|
||||
m_PrefilterSSAOBlueNoise: 1
|
||||
m_PrefilterSSAOSampleCountLow: 1
|
||||
m_PrefilterSSAOSampleCountMedium: 0
|
||||
m_PrefilterSSAOSampleCountMedium: 1
|
||||
m_PrefilterSSAOSampleCountHigh: 1
|
||||
m_PrefilterDBufferMRT1: 1
|
||||
m_PrefilterDBufferMRT2: 1
|
||||
@@ -127,15 +127,15 @@ MonoBehaviour:
|
||||
m_PrefilterSoftShadowsQualityHigh: 1
|
||||
m_PrefilterSoftShadows: 0
|
||||
m_PrefilterScreenCoord: 1
|
||||
m_PrefilterScreenSpaceIrradiance: 0
|
||||
m_PrefilterScreenSpaceIrradiance: 1
|
||||
m_PrefilterNativeRenderPass: 1
|
||||
m_PrefilterUseLegacyLightmaps: 0
|
||||
m_PrefilterBicubicLightmapSampling: 0
|
||||
m_PrefilterReflectionProbeRotation: 0
|
||||
m_PrefilterBicubicLightmapSampling: 1
|
||||
m_PrefilterReflectionProbeRotation: 1
|
||||
m_PrefilterReflectionProbeBlending: 0
|
||||
m_PrefilterReflectionProbeBoxProjection: 0
|
||||
m_PrefilterReflectionProbeAtlas: 0
|
||||
m_PrefilterPointSamplingUpsampling: 0
|
||||
m_PrefilterReflectionProbeAtlas: 1
|
||||
m_PrefilterPointSamplingUpsampling: 1
|
||||
m_ShaderVariantLogLevel: 0
|
||||
m_ShadowCascades: 0
|
||||
m_Textures:
|
||||
|
||||
@@ -100,16 +100,16 @@ MonoBehaviour:
|
||||
m_Keys: []
|
||||
m_Values:
|
||||
m_PrefilteringModeMainLightShadows: 3
|
||||
m_PrefilteringModeAdditionalLight: 4
|
||||
m_PrefilteringModeAdditionalLightShadows: 0
|
||||
m_PrefilteringModeAdditionalLight: 0
|
||||
m_PrefilteringModeAdditionalLightShadows: 2
|
||||
m_PrefilterXRKeywords: 1
|
||||
m_PrefilteringModeForwardPlus: 1
|
||||
m_PrefilteringModeForwardPlus: 2
|
||||
m_PrefilteringModeDeferredRendering: 0
|
||||
m_PrefilteringModeScreenSpaceOcclusion: 1
|
||||
m_PrefilteringModeScreenSpaceOcclusion: 2
|
||||
m_PrefilterDebugKeywords: 1
|
||||
m_PrefilterWriteRenderingLayers: 0
|
||||
m_PrefilterWriteRenderingLayers: 1
|
||||
m_PrefilterHDROutput: 1
|
||||
m_PrefilterAlphaOutput: 0
|
||||
m_PrefilterAlphaOutput: 1
|
||||
m_PrefilterSSAODepthNormals: 0
|
||||
m_PrefilterSSAOSourceDepthLow: 1
|
||||
m_PrefilterSSAOSourceDepthMedium: 1
|
||||
@@ -121,21 +121,21 @@ MonoBehaviour:
|
||||
m_PrefilterSSAOSampleCountHigh: 1
|
||||
m_PrefilterDBufferMRT1: 1
|
||||
m_PrefilterDBufferMRT2: 1
|
||||
m_PrefilterDBufferMRT3: 0
|
||||
m_PrefilterSoftShadowsQualityLow: 0
|
||||
m_PrefilterSoftShadowsQualityMedium: 0
|
||||
m_PrefilterSoftShadowsQualityHigh: 0
|
||||
m_PrefilterDBufferMRT3: 1
|
||||
m_PrefilterSoftShadowsQualityLow: 1
|
||||
m_PrefilterSoftShadowsQualityMedium: 1
|
||||
m_PrefilterSoftShadowsQualityHigh: 1
|
||||
m_PrefilterSoftShadows: 0
|
||||
m_PrefilterScreenCoord: 1
|
||||
m_PrefilterScreenSpaceIrradiance: 0
|
||||
m_PrefilterScreenSpaceIrradiance: 1
|
||||
m_PrefilterNativeRenderPass: 1
|
||||
m_PrefilterUseLegacyLightmaps: 0
|
||||
m_PrefilterBicubicLightmapSampling: 0
|
||||
m_PrefilterReflectionProbeRotation: 0
|
||||
m_PrefilterBicubicLightmapSampling: 1
|
||||
m_PrefilterReflectionProbeRotation: 1
|
||||
m_PrefilterReflectionProbeBlending: 0
|
||||
m_PrefilterReflectionProbeBoxProjection: 0
|
||||
m_PrefilterReflectionProbeAtlas: 0
|
||||
m_PrefilterPointSamplingUpsampling: 0
|
||||
m_PrefilterPointSamplingUpsampling: 1
|
||||
m_ShaderVariantLogLevel: 0
|
||||
m_ShadowCascades: 0
|
||||
m_Textures:
|
||||
|
||||
@@ -68,7 +68,22 @@ MonoBehaviour:
|
||||
- rid: 3333612056621613072
|
||||
- rid: 3333612056621613073
|
||||
m_RuntimeSettings:
|
||||
m_List: []
|
||||
m_List:
|
||||
- rid: 6852985685364965378
|
||||
- rid: 6852985685364965379
|
||||
- rid: 6852985685364965380
|
||||
- rid: 6852985685364965381
|
||||
- rid: 6852985685364965384
|
||||
- rid: 6852985685364965392
|
||||
- rid: 6852985685364965394
|
||||
- rid: 8712630790384254976
|
||||
- rid: 3333612056621613061
|
||||
- rid: 3333612056621613063
|
||||
- rid: 3333612056621613065
|
||||
- rid: 3333612056621613066
|
||||
- rid: 3333612056621613067
|
||||
- rid: 3333612056621613070
|
||||
- rid: 3333612056621613072
|
||||
m_AssetVersion: 10
|
||||
m_ObsoleteDefaultVolumeProfile: {fileID: 0}
|
||||
m_RenderingLayerNames:
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 32ff27ebc8f6b2c7f889381017da4a63
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c7c56097695869a8aabf90ddf2ea72e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,137 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-2417606369496293981
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: horse
|
||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap:
|
||||
RenderType: Opaque
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 2800000, guid: 167c60f120c967833ae3e2522d0d2f63, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 167c60f120c967833ae3e2522d0d2f63, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BumpScale: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 0
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 0
|
||||
- _Metallic: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.005
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0.5
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _WorkflowMode: 1
|
||||
- _XRMotionVectorsPass: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33348f33cbb633672b175f652bb27316
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 302 KiB |
@@ -0,0 +1,130 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 167c60f120c967833ae3e2522d0d2f63
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,260 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &5773563593850430131
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2222228025107556410}
|
||||
- component: {fileID: 4669837686563711666}
|
||||
- component: {fileID: 8910348206951184586}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2222228025107556410
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5773563593850430131}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 977458466062078640}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4669837686563711666
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5773563593850430131}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8910348206951184586
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5773563593850430131}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 99
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 69.2
|
||||
m_fontSizeBase: 69.2
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &8112576864672161542
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 977458466062078640}
|
||||
- component: {fileID: 1283827530265526597}
|
||||
- component: {fileID: 4524538985890394311}
|
||||
- component: {fileID: 5421730868112238964}
|
||||
m_Layer: 5
|
||||
m_Name: LevelButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &977458466062078640
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8112576864672161542}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 2222228025107556410}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1283827530265526597
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8112576864672161542}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &4524538985890394311
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8112576864672161542}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &5421730868112238964
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8112576864672161542}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 4524538985890394311}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d13594995949f9e1b9a14e647b5fcd5
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
void Staticburst_initialize(void* );
|
||||
void* StaticBurstStaticMethodLookup(void* );
|
||||
|
||||
int burst_enable_static_linkage = 1;
|
||||
void burst_initialize(void* i) { Staticburst_initialize(i); }
|
||||
void* BurstStaticMethodLookup(void* i) { return StaticBurstStaticMethodLookup(i); }
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
@@ -6,7 +6,10 @@ EditorBuildSettings:
|
||||
serializedVersion: 2
|
||||
m_Scenes:
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/SampleScene.unity
|
||||
guid: 99c9720ab356a0642a771bea13969a05
|
||||
path: Assets/Scenes/MainMenu.unity
|
||||
guid: 5f1ceeb1330e71ab1978f4e9cb09a4b2
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/Scene_Loadtest.unity
|
||||
guid: 7db06b1eece87bec39b259edf6304cb4
|
||||
m_configObjects:
|
||||
com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 052faaac586de48259a63d0c4782560b, type: 3}
|
||||
|
||||
@@ -527,7 +527,10 @@ PlayerSettings:
|
||||
m_Height: 720
|
||||
m_Kind: 1
|
||||
m_SubKind:
|
||||
m_BuildTargetBatching: []
|
||||
m_BuildTargetBatching:
|
||||
- m_BuildTarget: WebGL
|
||||
m_StaticBatching: 0
|
||||
m_DynamicBatching: 0
|
||||
m_BuildTargetShaderSettings: []
|
||||
m_BuildTargetGraphicsJobs: []
|
||||
m_BuildTargetGraphicsJobMode: []
|
||||
|
||||
Reference in New Issue
Block a user