diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/leftlarge.xml b/Assets/Default/Sprites/UI/SpeechBubbles/leftlarge.xml
index a0f6b63ed..3d73b4ea5 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/leftlarge.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/leftlarge.xml
@@ -1,7 +1,7 @@
-
-
+
+
156
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/leftlargeminus.xml b/Assets/Default/Sprites/UI/SpeechBubbles/leftlargeminus.xml
index a2b7b6c5d..3e6c6b8fa 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/leftlargeminus.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/leftlargeminus.xml
@@ -3,5 +3,5 @@
- 165
+ 170
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/leftwide.xml b/Assets/Default/Sprites/UI/SpeechBubbles/leftwide.xml
index f14046f53..c31953852 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/leftwide.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/leftwide.xml
@@ -3,5 +3,5 @@
- 194
+ 190
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/leftwideminus.xml b/Assets/Default/Sprites/UI/SpeechBubbles/leftwideminus.xml
index 51d81411c..1e57e5e1f 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/leftwideminus.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/leftwideminus.xml
@@ -3,5 +3,5 @@
- 150
+ 140
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/rightlarge.xml b/Assets/Default/Sprites/UI/SpeechBubbles/rightlarge.xml
index a32daef3c..f6ad04154 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/rightlarge.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/rightlarge.xml
@@ -1,7 +1,7 @@
-
+
160
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/rightlargeminus.xml b/Assets/Default/Sprites/UI/SpeechBubbles/rightlargeminus.xml
index f3513d0d6..390337f10 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/rightlargeminus.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/rightlargeminus.xml
@@ -1,7 +1,7 @@
-
+
165
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.png b/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.png
index 412372cca..7312f9b15 100644
Binary files a/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.png and b/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.png differ
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.xml b/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.xml
index 5d684c2d7..ba1c54737 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/rightlong.xml
@@ -3,5 +3,5 @@
- 76
+ 77
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/rightwide.xml b/Assets/Default/Sprites/UI/SpeechBubbles/rightwide.xml
index 0ad7b3757..3f4d7517d 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/rightwide.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/rightwide.xml
@@ -3,5 +3,5 @@
- 194
+ 188
\ No newline at end of file
diff --git a/Assets/Default/Sprites/UI/SpeechBubbles/rightwideminus.xml b/Assets/Default/Sprites/UI/SpeechBubbles/rightwideminus.xml
index e643fe9ac..100e6bf3a 100644
--- a/Assets/Default/Sprites/UI/SpeechBubbles/rightwideminus.xml
+++ b/Assets/Default/Sprites/UI/SpeechBubbles/rightwideminus.xml
@@ -3,5 +3,5 @@
- 150
+ 145
\ No newline at end of file
diff --git a/Assets/Default/Sprites/spr_chestbox_0.png b/Assets/Default/Sprites/spr_chestbox_0.png
new file mode 100644
index 000000000..d3f68217e
Binary files /dev/null and b/Assets/Default/Sprites/spr_chestbox_0.png differ
diff --git a/Assets/Default/Sprites/spr_chestbox_0.png.meta b/Assets/Default/Sprites/spr_chestbox_0.png.meta
new file mode 100644
index 000000000..0f66d9638
--- /dev/null
+++ b/Assets/Default/Sprites/spr_chestbox_0.png.meta
@@ -0,0 +1,88 @@
+fileFormatVersion: 2
+guid: 0acd4547315eb914f93ba1859fa4f79b
+TextureImporter:
+ fileIDToRecycleName: {}
+ externalObjects: {}
+ serializedVersion: 7
+ mipmaps:
+ mipMapMode: 0
+ enableMipMap: 0
+ 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
+ isReadable: 0
+ streamingMipmaps: 0
+ streamingMipmapsPriority: 0
+ grayScaleToAlpha: 0
+ generateCubemap: 6
+ cubemapConvolution: 0
+ seamlessCubemap: 0
+ textureFormat: 1
+ maxTextureSize: 2048
+ textureSettings:
+ serializedVersion: 2
+ filterMode: -1
+ aniso: -1
+ mipBias: -100
+ wrapU: 1
+ wrapV: 1
+ wrapW: 1
+ nPOTScale: 0
+ lightmap: 0
+ compressionQuality: 50
+ spriteMode: 1
+ 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: 1
+ spriteTessellationDetail: -1
+ textureType: 8
+ textureShape: 1
+ singleChannelComponent: 0
+ maxTextureSizeSet: 0
+ compressionQualitySet: 0
+ textureFormatSet: 0
+ platformSettings:
+ - serializedVersion: 2
+ buildTarget: DefaultTexturePlatform
+ maxTextureSize: 2048
+ resizeAlgorithm: 0
+ textureFormat: -1
+ textureCompression: 1
+ compressionQuality: 50
+ crunchedCompression: 0
+ allowsAlphaSplitting: 0
+ overridden: 0
+ androidETC2FallbackOverride: 0
+ spriteSheet:
+ serializedVersion: 2
+ sprites: []
+ outline: []
+ physicsShape: []
+ bones: []
+ spriteID: 9187d3978fa87f6438d5679a9fd4af33
+ vertices: []
+ indices:
+ edges: []
+ weights: []
+ spritePackingTag:
+ pSDRemoveMatte: 0
+ pSDShowRemoveMatteOption: 0
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Mods/@0.5.0_SEE_CRATE/Lua/Waves/bullettest_touhou.lua b/Assets/Mods/@0.5.0_SEE_CRATE/Lua/Waves/bullettest_touhou.lua
index d1a405d65..1017857d6 100644
--- a/Assets/Mods/@0.5.0_SEE_CRATE/Lua/Waves/bullettest_touhou.lua
+++ b/Assets/Mods/@0.5.0_SEE_CRATE/Lua/Waves/bullettest_touhou.lua
@@ -5,8 +5,8 @@ bg.y = 240
bg.color = {0,0,0}
if enemies[1]["name"] ~= "Punderbolt" then
local buttoncover = CreateSprite("UI/sq_white", "BelowArena")
- buttoncover.Scale(640/4,49/4)
- buttoncover.MoveTo(320,24.5)
+ buttoncover.Scale(640/4,50/4)
+ buttoncover.MoveTo(320,25)
buttoncover.color = {0,0,0}
local namecover = CreateSprite("UI/sq_white", "BelowArena")
namecover.SetPivot(0,0.5)
diff --git a/Assets/Mods/Examples/Lua/Events/BoxTest.lua b/Assets/Mods/Examples/Lua/Events/BoxTest.lua
new file mode 100644
index 000000000..dc4e898d2
--- /dev/null
+++ b/Assets/Mods/Examples/Lua/Events/BoxTest.lua
@@ -0,0 +1,6 @@
+function EventPage1()
+ General.SetChoice({"Yes", "No"}, "Use the box?")
+ if lastChoice == 0 then
+ Inventory.SpawnBoxMenu()
+ end
+end
\ No newline at end of file
diff --git a/Assets/Mods/Examples/Lua/Events/BoxTest.lua.meta b/Assets/Mods/Examples/Lua/Events/BoxTest.lua.meta
new file mode 100644
index 000000000..5272b97f1
--- /dev/null
+++ b/Assets/Mods/Examples/Lua/Events/BoxTest.lua.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: de746af2dcdb535418a46d9be90ea71a
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor.cs b/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor.cs
index 2d5776c07..683d16541 100644
--- a/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor.cs
+++ b/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor.cs
@@ -8,10 +8,11 @@ namespace MoonSharp.Interpreter.Execution.VM
{
sealed partial class Processor
{
- ByteCode m_RootChunk;
+ public ByteCode m_RootChunk;
+ public Instruction m_doFileRequireHack;
- FastStack m_ValueStack = new FastStack(131072);
- FastStack m_ExecutionStack = new FastStack(131072);
+ public FastStack m_ValueStack = new FastStack(131072);
+ public FastStack m_ExecutionStack = new FastStack(131072);
List m_CoroutinesStack;
Table m_GlobalTable;
diff --git a/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor_Errors.cs b/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor_Errors.cs
index 65e786593..c86f5abd4 100644
--- a/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor_Errors.cs
+++ b/Assets/Plugins/MoonSharp/Interpreter/Execution/VM/Processor/Processor_Errors.cs
@@ -6,10 +6,10 @@ sealed partial class Processor
{
private SourceRef GetCurrentSourceRef(int instructionPtr)
{
- if (instructionPtr >= 0 && instructionPtr < m_RootChunk.Code.Count)
- {
+ if (m_doFileRequireHack != null)
+ return m_doFileRequireHack.SourceCodeRef;
+ else if (instructionPtr >= 0 && instructionPtr < m_RootChunk.Code.Count)
return m_RootChunk.Code[instructionPtr].SourceCodeRef;
- }
return null;
}
diff --git a/Assets/Plugins/MoonSharp/Interpreter/Script.cs b/Assets/Plugins/MoonSharp/Interpreter/Script.cs
index 6e3bb11aa..612e347e5 100644
--- a/Assets/Plugins/MoonSharp/Interpreter/Script.cs
+++ b/Assets/Plugins/MoonSharp/Interpreter/Script.cs
@@ -179,9 +179,7 @@ public DynValue LoadString(string code, Table globalTable = null, string codeFri
m_Sources.Add(source);
- int address = Loader_Fast.LoadChunk(this,
- source,
- m_ByteCode);
+ int address = Loader_Fast.LoadChunk(this, source, m_ByteCode, m_MainProcessor);
SignalSourceCodeChange(source);
SignalByteCodeChange();
diff --git a/Assets/Plugins/MoonSharp/Interpreter/Tree/Fast_Interface/Loader_Fast.cs b/Assets/Plugins/MoonSharp/Interpreter/Tree/Fast_Interface/Loader_Fast.cs
index e3775921a..3fa23731a 100644
--- a/Assets/Plugins/MoonSharp/Interpreter/Tree/Fast_Interface/Loader_Fast.cs
+++ b/Assets/Plugins/MoonSharp/Interpreter/Tree/Fast_Interface/Loader_Fast.cs
@@ -41,9 +41,10 @@ private static ScriptLoadingContext CreateLoadingContext(Script script, SourceCo
};
}
- internal static int LoadChunk(Script script, SourceCode source, ByteCode bytecode)
+ internal static int LoadChunk(Script script, SourceCode source, ByteCode bytecode, Processor processor)
{
ScriptLoadingContext lcontext = CreateLoadingContext(script, source);
+
try
{
Statement stat;
@@ -55,6 +56,7 @@ internal static int LoadChunk(Script script, SourceCode source, ByteCode bytecod
//var srcref = new SourceRef(source.SourceID);
+
using (script.PerformanceStats.StartStopwatch(Diagnostics.PerformanceCounter.Compilation))
using (bytecode.EnterSource(null))
{
@@ -70,7 +72,9 @@ internal static int LoadChunk(Script script, SourceCode source, ByteCode bytecod
}
catch (SyntaxErrorException ex)
{
- ex.DecorateMessage(script);
+ Instruction i = new Instruction(lcontext.Lexer.Current.GetSourceRef()) { OpCode = OpCode.Nop, Name = "none" };
+ processor.m_doFileRequireHack = i;
+ ex.DecorateMessage(script, lcontext.Lexer.Current.GetSourceRef());
ex.Rethrow();
throw;
}
diff --git a/Assets/Scenes/TransitionOverworld.unity b/Assets/Scenes/TransitionOverworld.unity
index a51d09bad..418f5fc9b 100644
--- a/Assets/Scenes/TransitionOverworld.unity
+++ b/Assets/Scenes/TransitionOverworld.unity
@@ -5393,7 +5393,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1731033919}
- m_RootOrder: 4
+ m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
@@ -6277,6 +6277,7 @@ RectTransform:
- {fileID: 743800824}
- {fileID: 670959144}
- {fileID: 952942992}
+ - {fileID: 1957097253}
- {fileID: 1117834469}
m_Father: {fileID: 1779322336}
m_RootOrder: 8
@@ -7246,6 +7247,79 @@ CanvasRenderer:
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1942351437}
m_CullTransparentMesh: 0
+--- !u!1 &1957097252
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 183300, guid: 65ee94c713ee95942a47240fb8f2ae5c,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 1957097253}
+ - component: {fileID: 1957097255}
+ - component: {fileID: 1957097254}
+ m_Layer: 5
+ m_Name: itembox
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &1957097253
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 22418524, guid: 65ee94c713ee95942a47240fb8f2ae5c,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1957097252}
+ 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_Children: []
+ m_Father: {fileID: 1731033919}
+ m_RootOrder: 4
+ 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: -320, y: -240}
+ m_SizeDelta: {x: 640, y: 480}
+ m_Pivot: {x: 0, y: 0}
+--- !u!114 &1957097254
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 11481144, guid: 65ee94c713ee95942a47240fb8f2ae5c,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1957097252}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_Material: {fileID: 0}
+ m_Color: {r: 1, g: 1, b: 1, a: 0}
+ m_RaycastTarget: 1
+ m_OnCullStateChanged:
+ m_PersistentCalls:
+ m_Calls: []
+ m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
+ Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+ m_Sprite: {fileID: 21300000, guid: 1940471d360cdfc4390f579caff5a009, type: 3}
+ m_Type: 0
+ m_PreserveAspect: 0
+ m_FillCenter: 1
+ m_FillMethod: 4
+ m_FillAmount: 1
+ m_FillClockwise: 1
+ m_FillOrigin: 0
+--- !u!222 &1957097255
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 22269356, guid: 65ee94c713ee95942a47240fb8f2ae5c,
+ type: 2}
+ m_PrefabInternal: {fileID: 0}
+ m_GameObject: {fileID: 1957097252}
+ m_CullTransparentMesh: 0
--- !u!1 &1977298764
GameObject:
m_ObjectHideFlags: 0
diff --git a/Assets/Scenes/test2.unity b/Assets/Scenes/test2.unity
index 5695dd6db..8efc54ebf 100644
--- a/Assets/Scenes/test2.unity
+++ b/Assets/Scenes/test2.unity
@@ -198,49 +198,6 @@ EdgeCollider2D:
m_Points:
- {x: -0.5, y: 0}
- {x: 0.5, y: 0}
---- !u!1 &50872521
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 1849668906715600, guid: a0add8308da8d24468328221253c3ec7,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 50872523}
- - component: {fileID: 50872522}
- m_Layer: 0
- m_Name: SpritePivot
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!210 &50872522
-SortingGroup:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 210702407409670196, guid: a0add8308da8d24468328221253c3ec7,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 50872521}
- m_Enabled: 1
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
---- !u!4 &50872523
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 4671881132980978, guid: a0add8308da8d24468328221253c3ec7,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 50872521}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 280, y: 186, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children:
- - {fileID: 157357802}
- m_Father: {fileID: 0}
- m_RootOrder: 4
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &131311699
GameObject:
m_ObjectHideFlags: 0
@@ -282,171 +239,8 @@ Transform:
m_Children:
- {fileID: 2106957597}
m_Father: {fileID: 0}
- m_RootOrder: 6
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!1 &157357796
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 157357802}
- - component: {fileID: 157357801}
- - component: {fileID: 157357800}
- - component: {fileID: 157357799}
- - component: {fileID: 157357798}
- - component: {fileID: 157357797}
- m_Layer: 21
- m_Name: Bpie3
- m_TagString: Event
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 0
---- !u!114 &157357797
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 157357796}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 5b6761159c8f6224a8a895abea10dd25, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- SetNativeSize: 1
- SpritePath: Overworld/Bpie
- Loop: 0
- SoundPath:
- done: 0
---- !u!114 &157357798
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 157357796}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 846d0d1a9b9e1c14884c79473a1f1d14, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- scriptToLoad: Bpie
- actualPage: 3
- eventTriggers:
- - {x: 1, y: 0}
- - {x: 2, y: 2}
- - {x: 3, y: 2}
- moveSpeed: 1
---- !u!61 &157357799
-BoxCollider2D:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 157357796}
- m_Enabled: 1
- m_Density: 1
- m_Material: {fileID: 0}
- m_IsTrigger: 0
- m_UsedByEffector: 0
- m_UsedByComposite: 0
- m_Offset: {x: 0, y: 0.15}
- m_SpriteTilingProperty:
- border: {x: 0, y: 0, z: 0, w: 0}
- pivot: {x: 0.5, y: 0.5}
- oldSize: {x: 0.4, y: 0.28}
- newSize: {x: 0.4, y: 0.28}
- adaptiveTilingThreshold: 0.5
- drawMode: 0
- adaptiveTiling: 0
- m_AutoTiling: 0
- serializedVersion: 2
- m_Size: {x: 0.4, y: 0.3}
- m_EdgeRadius: 0
---- !u!50 &157357800
-Rigidbody2D:
- serializedVersion: 4
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 157357796}
- m_BodyType: 1
- m_Simulated: 1
- m_UseFullKinematicContacts: 0
- m_UseAutoMass: 0
- m_Mass: 1
- m_LinearDrag: 0
- m_AngularDrag: 0.05
- m_GravityScale: 1
- m_Material: {fileID: 0}
- m_Interpolate: 0
- m_SleepingMode: 1
- m_CollisionDetection: 0
- m_Constraints: 0
---- !u!212 &157357801
-SpriteRenderer:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 157357796}
- m_Enabled: 1
- m_CastShadows: 0
- m_ReceiveShadows: 0
- m_DynamicOccludee: 1
- m_MotionVectors: 1
- m_LightProbeUsage: 0
- m_ReflectionProbeUsage: 0
- m_RenderingLayerMask: 4294967295
- m_Materials:
- - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
- m_StaticBatchInfo:
- firstSubMesh: 0
- subMeshCount: 0
- m_StaticBatchRoot: {fileID: 0}
- m_ProbeAnchor: {fileID: 0}
- m_LightProbeVolumeOverride: {fileID: 0}
- m_ScaleInLightmap: 1
- m_PreserveUVs: 0
- m_IgnoreNormalsForChartDetection: 0
- m_ImportantGI: 0
- m_StitchLightmapSeams: 0
- m_SelectedEditorRenderState: 0
- m_MinimumChartSize: 4
- m_AutoUVMaxDistance: 0.5
- m_AutoUVMaxAngle: 89
- m_LightmapParameters: {fileID: 0}
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
- m_Sprite: {fileID: 21300000, guid: ef6b4cbe2b261634d9c5bd2811405b0d, type: 3}
- m_Color: {r: 1, g: 1, b: 1, a: 1}
- m_FlipX: 0
- m_FlipY: 0
- m_DrawMode: 0
- m_Size: {x: 0.4, y: 0.28}
- m_AdaptiveModeThreshold: 0.5
- m_SpriteTileMode: 0
- m_WasSpriteAssigned: 1
- m_MaskInteraction: 0
- m_SpriteSortPoint: 0
---- !u!224 &157357802
-RectTransform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 157357796}
- m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 100, y: 100, z: 1}
- m_Children: []
- m_Father: {fileID: 50872523}
- m_RootOrder: 0
+ m_RootOrder: 4
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: 0.4, y: 0.28}
- m_Pivot: {x: 0.5, y: 0}
--- !u!1 &178145621
GameObject:
m_ObjectHideFlags: 0
@@ -554,7 +348,7 @@ Transform:
m_Children:
- {fileID: 1441977566}
m_Father: {fileID: 0}
- m_RootOrder: 5
+ m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &413061391
GameObject:
@@ -924,49 +718,6 @@ PolygonCollider2D:
- {x: -0.6122708, y: -1.6012062}
- {x: -0.606358, y: -2.399723}
- {x: -3.1997173, y: -2.4001143}
---- !u!1 &1033740881
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 1849668906715600, guid: a0add8308da8d24468328221253c3ec7,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 1033740883}
- - component: {fileID: 1033740882}
- m_Layer: 0
- m_Name: SpritePivot
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!210 &1033740882
-SortingGroup:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 210702407409670196, guid: a0add8308da8d24468328221253c3ec7,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1033740881}
- m_Enabled: 1
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
---- !u!4 &1033740883
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 4671881132980978, guid: a0add8308da8d24468328221253c3ec7,
- type: 2}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1033740881}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 167, y: 286, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children:
- - {fileID: 1844181798}
- m_Father: {fileID: 0}
- m_RootOrder: 3
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1137831012
GameObject:
m_ObjectHideFlags: 0
@@ -1531,6 +1282,12 @@ Prefab:
propertyPath: m_Name
value: SpritePivot
objectReference: {fileID: 0}
+ - target: {fileID: 212134501322781040, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_Sprite
+ value:
+ objectReference: {fileID: 21300000, guid: 49257d0756bb14041b22743111edac9c,
+ type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: a0add8308da8d24468328221253c3ec7, type: 2}
m_IsPrefabAsset: 0
@@ -1919,7 +1676,7 @@ Prefab:
objectReference: {fileID: 0}
- target: {fileID: 4671881132980978, guid: a0add8308da8d24468328221253c3ec7, type: 2}
propertyPath: m_RootOrder
- value: 7
+ value: 5
objectReference: {fileID: 0}
- target: {fileID: 1849668906715600, guid: a0add8308da8d24468328221253c3ec7, type: 2}
propertyPath: m_Name
@@ -2221,169 +1978,432 @@ EdgeCollider2D:
m_Points:
- {x: -0.5, y: 0}
- {x: 0.5, y: 0}
---- !u!1 &1844181792
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 1844181798}
- - component: {fileID: 1844181797}
- - component: {fileID: 1844181796}
- - component: {fileID: 1844181795}
- - component: {fileID: 1844181794}
- - component: {fileID: 1844181793}
- m_Layer: 21
- m_Name: Bpie2
- m_TagString: Event
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!114 &1844181793
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1844181792}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 5b6761159c8f6224a8a895abea10dd25, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- SetNativeSize: 1
- SpritePath: Overworld/Bpie
- Loop: 0
- SoundPath:
- done: 0
---- !u!114 &1844181794
-MonoBehaviour:
+--- !u!1001 &1973657632
+Prefab:
m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1844181792}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 846d0d1a9b9e1c14884c79473a1f1d14, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- scriptToLoad: Bpie
- actualPage: 1
- eventTriggers:
- - {x: 0, y: 0}
- - {x: 1, y: 0}
- - {x: 2, y: 2}
- moveSpeed: 1
---- !u!61 &1844181795
-BoxCollider2D:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1844181792}
- m_Enabled: 1
- m_Density: 1
- m_Material: {fileID: 0}
- m_IsTrigger: 0
- m_UsedByEffector: 0
- m_UsedByComposite: 0
- m_Offset: {x: 0, y: 0.15}
- m_SpriteTilingProperty:
- border: {x: 0, y: 0, z: 0, w: 0}
- pivot: {x: 0.5, y: 0.5}
- oldSize: {x: 0.4, y: 0.28}
- newSize: {x: 0.4, y: 0.28}
- adaptiveTilingThreshold: 0.5
- drawMode: 0
- adaptiveTiling: 0
- m_AutoTiling: 0
serializedVersion: 2
- m_Size: {x: 0.4, y: 0.3}
- m_EdgeRadius: 0
---- !u!50 &1844181796
-Rigidbody2D:
- serializedVersion: 4
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1844181792}
- m_BodyType: 1
- m_Simulated: 1
- m_UseFullKinematicContacts: 0
- m_UseAutoMass: 0
- m_Mass: 1
- m_LinearDrag: 0
- m_AngularDrag: 0.05
- m_GravityScale: 1
- m_Material: {fileID: 0}
- m_Interpolate: 0
- m_SleepingMode: 1
- m_CollisionDetection: 0
- m_Constraints: 0
---- !u!212 &1844181797
-SpriteRenderer:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1844181792}
- m_Enabled: 1
- m_CastShadows: 0
- m_ReceiveShadows: 0
- m_DynamicOccludee: 1
- m_MotionVectors: 1
- m_LightProbeUsage: 0
- m_ReflectionProbeUsage: 0
- m_RenderingLayerMask: 4294967295
- m_Materials:
- - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
- m_StaticBatchInfo:
- firstSubMesh: 0
- subMeshCount: 0
- m_StaticBatchRoot: {fileID: 0}
- m_ProbeAnchor: {fileID: 0}
- m_LightProbeVolumeOverride: {fileID: 0}
- m_ScaleInLightmap: 1
- m_PreserveUVs: 0
- m_IgnoreNormalsForChartDetection: 0
- m_ImportantGI: 0
- m_StitchLightmapSeams: 0
- m_SelectedEditorRenderState: 0
- m_MinimumChartSize: 4
- m_AutoUVMaxDistance: 0.5
- m_AutoUVMaxAngle: 89
- m_LightmapParameters: {fileID: 0}
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
- m_Sprite: {fileID: 21300000, guid: ef6b4cbe2b261634d9c5bd2811405b0d, type: 3}
- m_Color: {r: 1, g: 1, b: 1, a: 1}
- m_FlipX: 0
- m_FlipY: 0
- m_DrawMode: 0
- m_Size: {x: 0.4, y: 0.28}
- m_AdaptiveModeThreshold: 0.5
- m_SpriteTileMode: 0
- m_WasSpriteAssigned: 1
- m_MaskInteraction: 0
- m_SpriteSortPoint: 0
---- !u!224 &1844181798
-RectTransform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1844181792}
- m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 100, y: 100, z: 1}
- m_Children: []
- m_Father: {fileID: 1033740883}
- m_RootOrder: 0
- 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: 0.4, y: 0.28}
- m_Pivot: {x: 0.5, y: 0}
+ m_Modification:
+ m_TransformParent: {fileID: 0}
+ m_Modifications:
+ - target: {fileID: 11460532, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: eventTriggers.Array.size
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.size
+ value: 1
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalPosition.x
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalPosition.y
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalPosition.z
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalRotation.x
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalRotation.y
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalRotation.z
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalRotation.w
+ value: 1
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_RootOrder
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_AnchoredPosition.x
+ value: 1040
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_AnchoredPosition.y
+ value: 740
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SizeDelta.x
+ value: 1
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SizeDelta.y
+ value: 1
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_AnchorMin.x
+ value: 0.5
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_AnchorMin.y
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_AnchorMax.x
+ value: 0.5
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_AnchorMax.y
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Pivot.x
+ value: 0.5
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Pivot.y
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 114980733475525374, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: SpritePath
+ value:
+ objectReference: {fileID: 0}
+ - target: {fileID: 11460532, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: eventTriggers.Array.data[1].x
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 11460532, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: eventTriggers.Array.data[2].x
+ value: 3
+ objectReference: {fileID: 0}
+ - target: {fileID: 11460532, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: eventTriggers.Array.data[3].x
+ value: 4
+ objectReference: {fileID: 0}
+ - target: {fileID: 11460532, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: eventTriggers.Array.data[4].x
+ value: 666
+ objectReference: {fileID: 0}
+ - target: {fileID: 11460532, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: moveSpeed
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 21250564, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Sprite
+ value:
+ objectReference: {fileID: 21300000, guid: 29b8b27a4045bde4c8ba97c1a30b2095,
+ type: 3}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalScale.x
+ value: 200
+ objectReference: {fileID: 0}
+ - target: {fileID: 22437642, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalScale.y
+ value: 200
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Size.x
+ value: 0.34
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Size.y
+ value: 0.3
+ objectReference: {fileID: 0}
+ - target: {fileID: 11460532, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: scriptToLoad
+ value: Secret/68302eae
+ objectReference: {fileID: 0}
+ - target: {fileID: 124458, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Name
+ value: 68302eae
+ objectReference: {fileID: 0}
+ - target: {fileID: 114980733475525374, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: SetNativeSize
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Offset.y
+ value: 0.148
+ objectReference: {fileID: 0}
+ - target: {fileID: 21250564, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Size.x
+ value: 0.28
+ objectReference: {fileID: 0}
+ - target: {fileID: 21250564, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Size.y
+ value: 0.38
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SpriteTilingProperty.pivot.x
+ value: 0.5
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SpriteTilingProperty.pivot.y
+ value: 0.5
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SpriteTilingProperty.oldSize.x
+ value: 0.38
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SpriteTilingProperty.oldSize.y
+ value: 0.58
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SpriteTilingProperty.newSize.x
+ value: 0.28
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SpriteTilingProperty.newSize.y
+ value: 0.38
+ objectReference: {fileID: 0}
+ - target: {fileID: 6188160, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_SpriteTilingProperty.adaptiveTilingThreshold
+ value: 0.5
+ objectReference: {fileID: 0}
+ - target: {fileID: 224194490068971162, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_AnchoredPosition.x
+ value: 400
+ objectReference: {fileID: 0}
+ - target: {fileID: 224194490068971162, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_AnchoredPosition.y
+ value: 200
+ objectReference: {fileID: 0}
+ - target: {fileID: 224194490068971162, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_LocalScale.x
+ value: 100
+ objectReference: {fileID: 0}
+ - target: {fileID: 224194490068971162, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_LocalScale.y
+ value: 100
+ objectReference: {fileID: 0}
+ - target: {fileID: 224194490068971162, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_RootOrder
+ value: 4
+ objectReference: {fileID: 0}
+ - target: {fileID: 21250564, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Color.a
+ value: 1
+ objectReference: {fileID: 0}
+ - target: {fileID: 4671881132980978, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_RootOrder
+ value: 6
+ objectReference: {fileID: 0}
+ - target: {fileID: 1849668906715600, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Name
+ value: SpritePivot
+ objectReference: {fileID: 0}
+ - target: {fileID: 1649222073514108, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_Name
+ value: Boxybox
+ objectReference: {fileID: 0}
+ - target: {fileID: 114226206946908324, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: SpritePath
+ value: spr_chestbox_0
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[3].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[4].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[0].x
+ value: 1
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[1].x
+ value: 1
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[2].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: moveSpeed
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: scriptToLoad
+ value: BoxTest
+ objectReference: {fileID: 0}
+ - target: {fileID: 212134501322781040, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_Sprite
+ value:
+ objectReference: {fileID: 21300000, guid: 0acd4547315eb914f93ba1859fa4f79b,
+ type: 3}
+ - target: {fileID: 224528923083268334, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_LocalScale.x
+ value: 100
+ objectReference: {fileID: 0}
+ - target: {fileID: 224528923083268334, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_LocalScale.y
+ value: 100
+ objectReference: {fileID: 0}
+ - target: {fileID: 4671881132980978, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalPosition.x
+ value: 240
+ objectReference: {fileID: 0}
+ - target: {fileID: 4671881132980978, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ propertyPath: m_LocalPosition.y
+ value: 140
+ objectReference: {fileID: 0}
+ - target: {fileID: 61614148327684554, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_SpriteTilingProperty.oldSize.x
+ value: 0.4
+ objectReference: {fileID: 0}
+ - target: {fileID: 61614148327684554, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_SpriteTilingProperty.oldSize.y
+ value: 0.4
+ objectReference: {fileID: 0}
+ - target: {fileID: 61614148327684554, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_Size.x
+ value: 0.4
+ objectReference: {fileID: 0}
+ - target: {fileID: 61614148327684554, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_Size.y
+ value: 0.4
+ objectReference: {fileID: 0}
+ - target: {fileID: 61614148327684554, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_Offset.y
+ value: 0.2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114226206946908324, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: SetNativeSize
+ value: 0
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[5].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[6].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[7].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[8].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[9].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[10].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[11].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[12].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[13].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[14].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[15].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[16].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[17].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[18].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[19].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[20].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[21].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[22].x
+ value: 2
+ objectReference: {fileID: 0}
+ - target: {fileID: 114879940000294058, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: eventTriggers.Array.data[2].y
+ value: 3
+ objectReference: {fileID: 0}
+ - target: {fileID: 224528923083268334, guid: a0add8308da8d24468328221253c3ec7,
+ type: 2}
+ propertyPath: m_SizeDelta.x
+ value: 1
+ objectReference: {fileID: 0}
+ m_RemovedComponents:
+ - {fileID: 114980733475525374, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ m_SourcePrefab: {fileID: 100100000, guid: a0add8308da8d24468328221253c3ec7, type: 2}
+ m_IsPrefabAsset: 0
--- !u!1 &2088941609
GameObject:
m_ObjectHideFlags: 0
diff --git a/Assets/Scripts/Battle/EnemyEncounter.cs b/Assets/Scripts/Battle/EnemyEncounter.cs
index 955ad92b3..826a54951 100644
--- a/Assets/Scripts/Battle/EnemyEncounter.cs
+++ b/Assets/Scripts/Battle/EnemyEncounter.cs
@@ -27,15 +27,18 @@ protected string RandomEncounterText() {
if (EnabledEnemies.Length <= 0)
return "";
int randomEnemy = UnityEngine.Random.Range(0, EnabledEnemies.Length);
- if (EnabledEnemies[randomEnemy].Comments.Length <= 0)
+ string[] comments;
+ try { comments = EnabledEnemies[randomEnemy].Comments; }
+ catch { throw new CYFException("RandomEncounterText: Can not read the \"comments\" table of enemy #" + (randomEnemy + 1).ToString() + ".\nAre you sure it's set?"); }
+ if (comments.Length <= 0)
return "";
- int randomComment = UnityEngine.Random.Range(0, EnabledEnemies[randomEnemy].Comments.Length);
- return EnabledEnemies[randomEnemy].Comments[randomComment];
+ int randomComment = UnityEngine.Random.Range(0, comments.Length);
+ return comments[randomComment];
}
public virtual void HandleItem(UnderItem item) {
//if (!CustomItemHandler(item))
- item.inCombatUse();
+ //item.inCombatUse();
}
public virtual void HandleSpare() {
diff --git a/Assets/Scripts/Battle/LuaEnemyController.cs b/Assets/Scripts/Battle/LuaEnemyController.cs
index 52aa99bfd..86d1df099 100644
--- a/Assets/Scripts/Battle/LuaEnemyController.cs
+++ b/Assets/Scripts/Battle/LuaEnemyController.cs
@@ -214,11 +214,11 @@ private void Start() {
script.scriptname = scriptName;
script.Bind("SetSprite", (Action)SetSprite);
script.Bind("SetActive", (Action)SetActive);
- script.Bind("isActive", (Func)InFight);
+ script.Bind("isactive", DynValue.NewBoolean(true));
script.Bind("Kill", (Action)DoKill);
script.Bind("Spare", (Action)DoSpare);
- script.Bind("Move", (Action)Move);
- script.Bind("MoveTo", (Action)MoveTo);
+ script.Bind("Move", (Action)Move);
+ script.Bind("MoveTo", (Action)MoveTo);
script.Bind("BindToArena", (Action)BindToArena);
script.Bind("SetDamage", (Action)SetDamage);
script.Bind("SetBubbleOffset", (Action)SetBubbleOffset);
@@ -246,7 +246,7 @@ private void Start() {
/*if (script.GetVar("canspare") == null) CanSpare = false;
if (script.GetVar("cancheck") == null) CanCheck = true;*/
}
- catch (InterpreterException ex) { UnitaleUtil.DisplayLuaError(scriptName, ex.DecoratedMessage); }
+ catch (InterpreterException ex) { UnitaleUtil.DisplayLuaError(scriptName, ex.DecoratedMessage != null ? ex.DecoratedMessage : ex.Message); }
catch (Exception ex) { UnitaleUtil.DisplayLuaError(scriptName, "Unknown error. Usually means you're missing a sprite.\nSee documentation for details.\nStacktrace below in case you wanna notify a dev.\n\nError: " + ex.Message + "\n\n" + ex.StackTrace); }
}
@@ -353,23 +353,24 @@ public void DoKill() {
/// Set if we should consider this monster for menus e.g.
///
///
- public void SetActive(bool active) { inFight = active; }
+ public void SetActive(bool active) {
+ inFight = active;
+ script.SetVar("isactive", DynValue.NewBoolean(active));
+ }
- public void Move(float x, float y, bool bindToArena = false) {
+ public void Move(float x, float y) {
if (!canMove)
return;
GetComponent().position = new Vector2(GetComponent().position.x + x, GetComponent().position.y + y);
}
- public void MoveTo(float x, float y, bool bindToArena = false) {
+ public void MoveTo(float x, float y) {
if (!canMove)
return;
GetComponent().position = new Vector2(x, y);
}
public void BindToArena(bool bind, bool isUnderArena = false) {
- if (!canMove)
- return;
int count = 0;
if (bind) { //If bind :ahde:
foreach (LuaEnemyController luaec in GameObject.FindObjectsOfType()) //for each enemies...
diff --git a/Assets/Scripts/Battle/LuaEnemyEncounter.cs b/Assets/Scripts/Battle/LuaEnemyEncounter.cs
index f0faf14be..9b65436f3 100644
--- a/Assets/Scripts/Battle/LuaEnemyEncounter.cs
+++ b/Assets/Scripts/Battle/LuaEnemyEncounter.cs
@@ -95,6 +95,13 @@ private DynValue CreateProjectile(Script s, string sprite, float xpos, float ypo
private void PrepareWave() {
DynValue nextWaves = script.GetVar("nextwaves");
+ if (nextWaves.Type != DataType.Table) {
+ if (nextWaves.Type == DataType.Nil)
+ UnitaleUtil.DisplayLuaError(StaticInits.ENCOUNTER, "nextwaves is not defined in your script.");
+ else
+ UnitaleUtil.DisplayLuaError(StaticInits.ENCOUNTER, "nextwaves is a " + nextWaves.Type.ToString() + ", but should be a table.");
+ return;
+ }
waves = new ScriptWrapper[nextWaves.Table.Length];
waveNames = new string[waves.Length];
int currentWaveScript = 0;
@@ -103,7 +110,7 @@ private void PrepareWave() {
for (int i = 0; i < waves.Length; i++) {
currentWaveScript = i;
DynValue ArenaStatus = UserData.Create(ArenaManager.luaStatus);
- waves[i] = new ScriptWrapper() { script = LuaScriptBinder.BoundScript() };
+ waves[i] = new ScriptWrapper();
waves[i].script.Globals.Set("Arena", ArenaStatus);
waves[i].script.Globals["EndWave"] = (Action)EndWaveTimer;
waves[i].script.Globals["State"] = (Action