From 7c57d8c9a8ed0f265908cdfacf5448db61ace73f Mon Sep 17 00:00:00 2001 From: desktop-maesty/steve Date: Sun, 20 Aug 2017 14:27:11 +1000 Subject: [PATCH] Added Fungus Commands for most of MathF Added Math demo scene --- Assets/Fungus/Scripts/Commands/Math.meta | 9 + Assets/Fungus/Scripts/Commands/Math/Abs.cs | 26 + .../Fungus/Scripts/Commands/Math/Abs.cs.meta | 12 + .../Commands/Math/BaseUnaryMathCommand.cs | 25 + .../Math/BaseUnaryMathCommand.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Clamp.cs | 66 + .../Scripts/Commands/Math/Clamp.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Curve.cs | 29 + .../Scripts/Commands/Math/Curve.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Exp.cs | 26 + .../Fungus/Scripts/Commands/Math/Exp.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Inv.cs | 28 + .../Fungus/Scripts/Commands/Math/Inv.cs.meta | 12 + .../Fungus/Scripts/Commands/Math/InvLerp.cs | 46 + .../Scripts/Commands/Math/InvLerp.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Lerp.cs | 63 + .../Fungus/Scripts/Commands/Math/Lerp.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Log.cs | 56 + .../Fungus/Scripts/Commands/Math/Log.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Map.cs | 48 + .../Fungus/Scripts/Commands/Math/Map.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/MinMax.cs | 61 + .../Scripts/Commands/Math/MinMax.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Neg.cs | 26 + .../Fungus/Scripts/Commands/Math/Neg.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Pow.cs | 39 + .../Fungus/Scripts/Commands/Math/Pow.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Round.cs | 50 + .../Scripts/Commands/Math/Round.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Sign.cs | 26 + .../Fungus/Scripts/Commands/Math/Sign.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Sqrt.cs | 26 + .../Fungus/Scripts/Commands/Math/Sqrt.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/ToInt.cs | 65 + .../Scripts/Commands/Math/ToInt.cs.meta | 12 + Assets/Fungus/Scripts/Commands/Math/Trig.cs | 85 + .../Fungus/Scripts/Commands/Math/Trig.cs.meta | 12 + Assets/FungusExamples/Math.meta | 9 + Assets/FungusExamples/Math/MathQuiz.unity | 1724 +++++++++++++++++ .../FungusExamples/Math/MathQuiz.unity.meta | 8 + 40 files changed, 2757 insertions(+) create mode 100644 Assets/Fungus/Scripts/Commands/Math.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Abs.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Abs.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Clamp.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Clamp.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Curve.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Curve.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Exp.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Exp.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Inv.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Inv.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/InvLerp.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/InvLerp.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Lerp.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Lerp.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Log.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Log.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Map.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Map.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/MinMax.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/MinMax.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Neg.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Neg.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Pow.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Pow.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Round.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Round.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Sign.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Sign.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Sqrt.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Sqrt.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/ToInt.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/ToInt.cs.meta create mode 100644 Assets/Fungus/Scripts/Commands/Math/Trig.cs create mode 100644 Assets/Fungus/Scripts/Commands/Math/Trig.cs.meta create mode 100644 Assets/FungusExamples/Math.meta create mode 100644 Assets/FungusExamples/Math/MathQuiz.unity create mode 100644 Assets/FungusExamples/Math/MathQuiz.unity.meta diff --git a/Assets/Fungus/Scripts/Commands/Math.meta b/Assets/Fungus/Scripts/Commands/Math.meta new file mode 100644 index 00000000..5bfbbb1d --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 09c52cfe3a6ff4747a9c207bec24ba11 +folderAsset: yes +timeCreated: 1503202781 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Abs.cs b/Assets/Fungus/Scripts/Commands/Math/Abs.cs new file mode 100644 index 00000000..8b9bc27e --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Abs.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of a Abs + /// + [CommandInfo("Math", + "Abs", + "Command to execute and store the result of a Abs")] + [AddComponentMenu("")] + public class Abs : BaseUnaryMathCommand + { + public override void OnEnter() + { + outValue.Value = Mathf.Abs(inValue.Value); + + Continue(); + } + + public override string GetSummary() + { + return "Abs"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Abs.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Abs.cs.meta new file mode 100644 index 00000000..50bde0dc --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Abs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d11e978db36df445816ec2535d381ce +timeCreated: 1501211592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs b/Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs new file mode 100644 index 00000000..253d834e --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs @@ -0,0 +1,25 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Base class for all simple Unary + /// + [AddComponentMenu("")] + public abstract class BaseUnaryMathCommand : Command + { + [Tooltip("Value to be passed in to the function.")] + [SerializeField] + protected FloatData inValue; + + [Tooltip("Where the result of the function is stored.")] + [SerializeField] + protected FloatData outValue; + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs.meta b/Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs.meta new file mode 100644 index 00000000..1fc01c3c --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/BaseUnaryMathCommand.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 513a02811ba512d4ab54d157a15ae8c2 +timeCreated: 1501211592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Clamp.cs b/Assets/Fungus/Scripts/Commands/Math/Clamp.cs new file mode 100644 index 00000000..75ce2934 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Clamp.cs @@ -0,0 +1,66 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to contain a value between a lower and upper bound, with optional wrapping modes + /// + [CommandInfo("Math", + "Clamp", + "Command to contain a value between a lower and upper bound, with optional wrapping modes")] + [AddComponentMenu("")] + public class Clamp : Command + { + public enum Mode + { + Clamp, + Repeat, + PingPong + } + + [SerializeField] + protected Mode mode = Mode.Clamp; + + //[Tooltip("LHS Value ")] + [SerializeField] + protected FloatData lower, upper, value; + + [Tooltip("Result put here, if using pingpong don't use the same var for value as outValue.")] + [SerializeField] + protected FloatData outValue; + + public override void OnEnter() + { + var l = lower.Value; + var u = upper.Value; + var v = value.Value; + + switch (mode) + { + case Mode.Clamp: + outValue.Value = Mathf.Clamp(value.Value, lower.Value, upper.Value); + break; + case Mode.Repeat: + outValue.Value = (Mathf.Repeat(v - l, u - l)) + l; + break; + case Mode.PingPong: + outValue.Value = (Mathf.PingPong(v - l, u - l)) + l; + break; + default: + break; + } + + Continue(); + } + + public override string GetSummary() + { + return Mode.Clamp.ToString() + (mode != Mode.Clamp ? " & " + mode.ToString() : ""); + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Clamp.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Clamp.cs.meta new file mode 100644 index 00000000..9e93100f --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Clamp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2929f1e90a24b6446a70d27316cff20a +timeCreated: 1501225403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Curve.cs b/Assets/Fungus/Scripts/Commands/Math/Curve.cs new file mode 100644 index 00000000..69c8d76a --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Curve.cs @@ -0,0 +1,29 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Pass a value through an AnimationCurve + /// + [CommandInfo("Math", + "Curve", + "Pass a value through an AnimationCurve")] + [AddComponentMenu("")] + public class Curve : BaseUnaryMathCommand + { + [SerializeField] + protected AnimationCurve curve = AnimationCurve.Linear(0, 0, 1, 1); + + public override void OnEnter() + { + outValue.Value = curve.Evaluate(inValue.Value); + + Continue(); + } + + public override string GetSummary() + { + return "Curve"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Curve.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Curve.cs.meta new file mode 100644 index 00000000..b67fc8fc --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Curve.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c03f48fc50d3747478ad85653a21a5f5 +timeCreated: 1501226831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Exp.cs b/Assets/Fungus/Scripts/Commands/Math/Exp.cs new file mode 100644 index 00000000..6e5c4723 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Exp.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of a Exp + /// + [CommandInfo("Math", + "Exp", + "Command to execute and store the result of a Exp")] + [AddComponentMenu("")] + public class Exp : BaseUnaryMathCommand + { + public override void OnEnter() + { + outValue.Value = Mathf.Exp(inValue.Value); + + Continue(); + } + + public override string GetSummary() + { + return "Exp"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Exp.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Exp.cs.meta new file mode 100644 index 00000000..3e609ebf --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Exp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f28df8ed8a80fa345b3b5e3dcacdea65 +timeCreated: 1501211938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Inv.cs b/Assets/Fungus/Scripts/Commands/Math/Inv.cs new file mode 100644 index 00000000..fcd6a5d3 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Inv.cs @@ -0,0 +1,28 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Multiplicative Inverse of a float (1/f) + /// + [CommandInfo("Math", + "Inverse", + "Multiplicative Inverse of a float (1/f)")] + [AddComponentMenu("")] + public class Inv : BaseUnaryMathCommand + { + public override void OnEnter() + { + var v = inValue.Value; + + outValue.Value = v != 0 ? (1.0f / inValue.Value) : 0.0f; + + Continue(); + } + + public override string GetSummary() + { + return "Inverse 1/f"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Inv.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Inv.cs.meta new file mode 100644 index 00000000..fc54c386 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Inv.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36d3a877e83b1d1478f1ac099414d17a +timeCreated: 1501213679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/InvLerp.cs b/Assets/Fungus/Scripts/Commands/Math/InvLerp.cs new file mode 100644 index 00000000..a593dc0d --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/InvLerp.cs @@ -0,0 +1,46 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Calculates the inverse lerp, the percentage a value is between two others. + /// + [CommandInfo("Math", + "InvLerp", + "Calculates the inverse lerp, the percentage a value is between two others.")] + [AddComponentMenu("")] + public class InvLerp : Command + { + [Tooltip("Clamp percentage to 0-1?")] + [SerializeField] + protected bool clampResult = true; + + //[Tooltip("LHS Value ")] + [SerializeField] + protected FloatData a, b, value; + + //[Tooltip("Where the result of the function is stored.")] + [SerializeField] + protected FloatData outValue; + + public override void OnEnter() + { + if (clampResult) + outValue.Value = Mathf.InverseLerp(a.Value, b.Value, value.Value); + else + outValue.Value = (value.Value - a.Value) / (b.Value - a.Value); + + Continue(); + } + + public override string GetSummary() + { + return "InvLerp [" + a.Value.ToString() + "-" + b.Value.ToString() + "]"; + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/InvLerp.cs.meta b/Assets/Fungus/Scripts/Commands/Math/InvLerp.cs.meta new file mode 100644 index 00000000..d6d1bc84 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/InvLerp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80c88869f66a81f4b95e843c36724e65 +timeCreated: 1501213063 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Lerp.cs b/Assets/Fungus/Scripts/Commands/Math/Lerp.cs new file mode 100644 index 00000000..5caedf46 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Lerp.cs @@ -0,0 +1,63 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Linearly Interpolate from A to B + /// + [CommandInfo("Math", + "Lerp", + "Linearly Interpolate from A to B")] + [AddComponentMenu("")] + public class Lerp : Command + { + public enum Mode + { + Lerp, + LerpUnclamped, + LerpAngle + } + + [SerializeField] + protected Mode mode = Mode.Lerp; + + //[Tooltip("LHS Value ")] + [SerializeField] + protected FloatData a = new FloatData(0), b = new FloatData(1), percentage; + + //[Tooltip("Where the result of the function is stored.")] + [SerializeField] + protected FloatData outValue; + + public override void OnEnter() + { + switch (mode) + { + case Mode.Lerp: + outValue.Value = Mathf.Lerp(a.Value, b.Value, percentage.Value); + break; + case Mode.LerpUnclamped: + outValue.Value = Mathf.LerpUnclamped(a.Value, b.Value, percentage.Value); + break; + case Mode.LerpAngle: + outValue.Value = Mathf.LerpAngle(a.Value, b.Value, percentage.Value); + break; + default: + break; + } + + Continue(); + } + + public override string GetSummary() + { + return mode.ToString() + " [" + a.Value.ToString() + "-" + b.Value.ToString() + "]"; + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Lerp.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Lerp.cs.meta new file mode 100644 index 00000000..da0b39de --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Lerp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b44d8d3a71d3e7b45a89437c8f84e687 +timeCreated: 1501212773 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Log.cs b/Assets/Fungus/Scripts/Commands/Math/Log.cs new file mode 100644 index 00000000..2c7da4bb --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Log.cs @@ -0,0 +1,56 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of a Log + /// + [CommandInfo("Math", + "Log", + "Command to execute and store the result of a Log")] + [AddComponentMenu("")] + public class Log : BaseUnaryMathCommand + { + public enum Mode + { + Base10, + Natural + } + + [Tooltip("Which log to use, natural or base 10")] + [SerializeField] + protected Mode mode = Mode.Natural; + + public override void OnEnter() + { + switch (mode) + { + case Mode.Base10: + outValue.Value = Mathf.Log10(inValue.Value); + break; + case Mode.Natural: + outValue.Value = Mathf.Log(inValue.Value); + break; + default: + break; + } + + Continue(); + } + + public override string GetSummary() + { + switch (mode) + { + case Mode.Base10: + return "Log Base 10"; + case Mode.Natural: + return "Natural Log"; + default: + break; + } + + return "Log"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Log.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Log.cs.meta new file mode 100644 index 00000000..c8d8d449 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Log.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47ecda391b679d8449893d4466f41b13 +timeCreated: 1501211938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Map.cs b/Assets/Fungus/Scripts/Commands/Math/Map.cs new file mode 100644 index 00000000..61f7fb23 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Map.cs @@ -0,0 +1,48 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Map a value that exists in 1 range of numbers to another. + /// + [CommandInfo("Math", + "Map", + "Map a value that exists in 1 range of numbers to another.")] + [AddComponentMenu("")] + public class Map : Command + { + //[Tooltip("LHS Value ")] + [SerializeField] + protected FloatData initialRangeLower = new FloatData(0), initialRangeUpper = new FloatData(1), value; + + [SerializeField] + protected FloatData newRangeLower = new FloatData(0), newRangeUpper = new FloatData(1); + + [SerializeField] + protected FloatData outValue; + + public override void OnEnter() + { + var p = value.Value - initialRangeLower.Value; + p /= initialRangeUpper.Value - initialRangeLower.Value; + + var res = p * (newRangeUpper.Value - newRangeLower.Value); + res += newRangeLower.Value; + + outValue.Value = res; + + Continue(); + } + + public override string GetSummary() + { + return "Map [" + initialRangeLower.Value.ToString() + "-" + initialRangeUpper.Value.ToString() + "] to [" + + newRangeLower.Value.ToString() + "-" + newRangeUpper.Value.ToString() + "]"; + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Map.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Map.cs.meta new file mode 100644 index 00000000..d38c5070 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Map.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78d80bb5401d8044eb9eee0d4eb0b645 +timeCreated: 1501226122 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/MinMax.cs b/Assets/Fungus/Scripts/Commands/Math/MinMax.cs new file mode 100644 index 00000000..9efeb0a0 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/MinMax.cs @@ -0,0 +1,61 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to store the min or max of 2 values + /// + [CommandInfo("Math", + "MinMax", + "Command to store the min or max of 2 values")] + [AddComponentMenu("")] + public class MinMax : Command + { + public enum Function + { + Min, + Max + } + + [Tooltip("Min Or Max")] + [SerializeField] + protected Function function = Function.Min; + + //[Tooltip("LHS Value ")] + [SerializeField] + protected FloatData inLHSValue, inRHSValue; + + //[Tooltip("Where the result of the function is stored.")] + [SerializeField] + protected FloatData outValue; + + public override void OnEnter() + { + switch (function) + { + case Function.Min: + outValue.Value = Mathf.Min(inLHSValue.Value, inRHSValue.Value); + break; + case Function.Max: + outValue.Value = Mathf.Max(inLHSValue.Value, inRHSValue.Value); + break; + default: + break; + } + + + Continue(); + } + + public override string GetSummary() + { + return function.ToString(); + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/MinMax.cs.meta b/Assets/Fungus/Scripts/Commands/Math/MinMax.cs.meta new file mode 100644 index 00000000..f356cd42 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/MinMax.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 514ec18f5085cba48bbe6701e4697eb0 +timeCreated: 1501212523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Neg.cs b/Assets/Fungus/Scripts/Commands/Math/Neg.cs new file mode 100644 index 00000000..883ef7de --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Neg.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Negate a float + /// + [CommandInfo("Math", + "Negate", + "Negate a float")] + [AddComponentMenu("")] + public class Neg : BaseUnaryMathCommand + { + public override void OnEnter() + { + outValue.Value = -(inValue.Value); + + Continue(); + } + + public override string GetSummary() + { + return "Negate"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Neg.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Neg.cs.meta new file mode 100644 index 00000000..c23c52d6 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Neg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff146879925212d4988aa4318efcbbd5 +timeCreated: 1501213679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Pow.cs b/Assets/Fungus/Scripts/Commands/Math/Pow.cs new file mode 100644 index 00000000..e20db290 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Pow.cs @@ -0,0 +1,39 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Raise a value to the power of another + /// + [CommandInfo("Math", + "Pow", + "Raise a value to the power of another.")] + [AddComponentMenu("")] + public class Pow : Command + { + [SerializeField] + protected FloatData baseValue, exponentValue; + + [Tooltip("Where the result of the function is stored.")] + [SerializeField] + protected FloatData outValue; + + public override void OnEnter() + { + outValue.Value = Mathf.Pow(baseValue.Value, exponentValue.Value); + + Continue(); + } + + public override string GetSummary() + { + return "Pow"; + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Pow.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Pow.cs.meta new file mode 100644 index 00000000..1fd5077c --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Pow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23b09e2ab627fec4cb0200f7252dbc90 +timeCreated: 1501497818 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Round.cs b/Assets/Fungus/Scripts/Commands/Math/Round.cs new file mode 100644 index 00000000..418893f7 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Round.cs @@ -0,0 +1,50 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of a Round + /// + [CommandInfo("Math", + "Round", + "Command to execute and store the result of a Round")] + [AddComponentMenu("")] + public class Round : BaseUnaryMathCommand + { + public enum Mode + { + Round, + Floor, + Ceil + } + + [Tooltip("Mode; Round (closest), floor(smaller) or ceil(bigger).")] + [SerializeField] + protected Mode function = Mode.Round; + + public override void OnEnter() + { + switch (function) + { + case Mode.Round: + outValue.Value = Mathf.Round(inValue.Value); + break; + case Mode.Floor: + outValue.Value = Mathf.Floor(inValue.Value); + break; + case Mode.Ceil: + outValue.Value = Mathf.Ceil(inValue.Value); + break; + default: + break; + } + + Continue(); + } + + public override string GetSummary() + { + return function.ToString(); + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Round.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Round.cs.meta new file mode 100644 index 00000000..3dab99b2 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Round.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9c834185b491334d8e41ca4fc49a56e +timeCreated: 1501212403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Sign.cs b/Assets/Fungus/Scripts/Commands/Math/Sign.cs new file mode 100644 index 00000000..d3b3ebb9 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Sign.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of a Sign + /// + [CommandInfo("Math", + "Sign", + "Command to execute and store the result of a Sign")] + [AddComponentMenu("")] + public class Sign : BaseUnaryMathCommand + { + public override void OnEnter() + { + outValue.Value = Mathf.Sign(inValue.Value); + + Continue(); + } + + public override string GetSummary() + { + return "Sign"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Sign.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Sign.cs.meta new file mode 100644 index 00000000..8f7a7a9f --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Sign.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a03542258f6b654b8a6d64938803f71 +timeCreated: 1501211938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Sqrt.cs b/Assets/Fungus/Scripts/Commands/Math/Sqrt.cs new file mode 100644 index 00000000..57500efe --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Sqrt.cs @@ -0,0 +1,26 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of a Sqrt + /// + [CommandInfo("Math", + "Sqrt", + "Command to execute and store the result of a Sqrt")] + [AddComponentMenu("")] + public class Sqrt : BaseUnaryMathCommand + { + public override void OnEnter() + { + outValue.Value = Mathf.Sqrt(inValue.Value); + + Continue(); + } + + public override string GetSummary() + { + return "Sqrt"; + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Sqrt.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Sqrt.cs.meta new file mode 100644 index 00000000..3242b4de --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Sqrt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e52daa13ab8fe7499a7774ebc194fc5 +timeCreated: 1501211938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/ToInt.cs b/Assets/Fungus/Scripts/Commands/Math/ToInt.cs new file mode 100644 index 00000000..e4a15b24 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/ToInt.cs @@ -0,0 +1,65 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of a float to int conversion + /// + [CommandInfo("Math", + "ToInt", + "Command to execute and store the result of a float to int conversion")] + [AddComponentMenu("")] + public class ToInt : Command + { + public enum Mode + { + RoundToInt, + FloorToInt, + CeilToInt, + } + + + [Tooltip("To integer mode; round, floor or ceil.")] + [SerializeField] + protected Mode function = Mode.RoundToInt; + + [Tooltip("Value to be passed in to the function.")] + [SerializeField] + protected FloatData inValue; + + [Tooltip("Where the result of the function is stored.")] + [SerializeField] + protected IntegerData outValue; + + public override void OnEnter() + { + switch (function) + { + case Mode.RoundToInt: + outValue.Value = Mathf.RoundToInt(inValue.Value); + break; + case Mode.FloorToInt: + outValue.Value = Mathf.FloorToInt(inValue.Value); + break; + case Mode.CeilToInt: + outValue.Value = Mathf.CeilToInt(inValue.Value); + break; + default: + break; + } + + Continue(); + } + + public override string GetSummary() + { + return function.ToString(); + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/ToInt.cs.meta b/Assets/Fungus/Scripts/Commands/Math/ToInt.cs.meta new file mode 100644 index 00000000..334b3535 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/ToInt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 209dba259f0c4134daa0ec3b64c78062 +timeCreated: 1501210911 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Fungus/Scripts/Commands/Math/Trig.cs b/Assets/Fungus/Scripts/Commands/Math/Trig.cs new file mode 100644 index 00000000..2f032775 --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Trig.cs @@ -0,0 +1,85 @@ +using UnityEngine; + +namespace Fungus +{ + /// + /// Command to execute and store the result of basic trigonometry + /// + [CommandInfo("Math", + "Trig", + "Command to execute and store the result of basic trigonometry")] + [AddComponentMenu("")] + public class Trig : Command + { + public enum Function + { + Rad2Deg, + Deg2Rad, + ACos, + ASin, + ATan, + Cos, + Sin, + Tan + } + + + [Tooltip("Trigonometric function to run.")] + [SerializeField] + protected Function function = Function.Sin; + + [Tooltip("Value to be passed in to the function.")] + [SerializeField] + protected FloatData inValue; + + [Tooltip("Where the result of the function is stored.")] + [SerializeField] + protected FloatData outValue; + + public override void OnEnter() + { + switch (function) + { + case Function.Rad2Deg: + outValue.Value = inValue.Value * Mathf.Rad2Deg; + break; + case Function.Deg2Rad: + outValue.Value = inValue.Value * Mathf.Deg2Rad; + break; + case Function.ACos: + outValue.Value = Mathf.Acos(inValue.Value); + break; + case Function.ASin: + outValue.Value = Mathf.Asin(inValue.Value); + break; + case Function.ATan: + outValue.Value = Mathf.Atan(inValue.Value); + break; + case Function.Cos: + outValue.Value = Mathf.Cos(inValue.Value); + break; + case Function.Sin: + outValue.Value = Mathf.Sin(inValue.Value); + break; + case Function.Tan: + outValue.Value = Mathf.Tan(inValue.Value); + break; + default: + break; + } + + Continue(); + } + + public override string GetSummary() + { + return function.ToString(); + } + + public override Color GetButtonColor() + { + return new Color32(235, 191, 217, 255); + } + + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Commands/Math/Trig.cs.meta b/Assets/Fungus/Scripts/Commands/Math/Trig.cs.meta new file mode 100644 index 00000000..2d6aec0f --- /dev/null +++ b/Assets/Fungus/Scripts/Commands/Math/Trig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee9ab1525ab1b794489f2517aab1d5e2 +timeCreated: 1501148787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/FungusExamples/Math.meta b/Assets/FungusExamples/Math.meta new file mode 100644 index 00000000..9388eeb1 --- /dev/null +++ b/Assets/FungusExamples/Math.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 8603b184910aa8344a8ac021ea619bfd +folderAsset: yes +timeCreated: 1503202781 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/FungusExamples/Math/MathQuiz.unity b/Assets/FungusExamples/Math/MathQuiz.unity new file mode 100644 index 00000000..359eb80f --- /dev/null +++ b/Assets/FungusExamples/Math/MathQuiz.unity @@ -0,0 +1,1724 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 8 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 8 + m_Resolution: 2 + m_BakeResolution: 40 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 0 + m_CompAOExponentDirect: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_MixedBakeMode: 1 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVRFiltering: 0 + m_PVRFilteringMode: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousColorSigma: 1 + m_PVRFilteringAtrousNormalSigma: 1 + m_PVRFilteringAtrousPositionSigma: 1 + m_LightingDataAsset: {fileID: 0} + m_ShadowMaskMode: 2 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &205269089 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110280, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 205269090} + - component: {fileID: 205269092} + - component: {fileID: 205269091} + m_Layer: 0 + m_Name: Offscreen Right + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &205269090 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410278, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 205269089} + 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: 1544660787} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 1300, y: -1000} + m_SizeDelta: {x: 1000, y: 1000} + m_Pivot: {x: 0.5, y: 0} +--- !u!114 &205269091 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410282, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 205269089} + 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: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &205269092 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22210276, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 205269089} +--- !u!1 &275029862 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 100000, guid: b20518d45890e4be59ba82946f88026c, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 275029864} + - component: {fileID: 275029863} + m_Layer: 0 + m_Name: John + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &275029863 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11400000, guid: b20518d45890e4be59ba82946f88026c, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 275029862} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 25fb867d2049d41f597aefdd6b19f598, type: 3} + m_Name: + m_EditorClassIdentifier: + nameText: John + nameColor: {r: 1, g: 1, b: 1, a: 1} + soundEffect: {fileID: 0} + portraits: + - {fileID: 21300000, guid: 58bfb145092302e4083ef8a9e4eeb576, type: 3} + - {fileID: 21300000, guid: 820bab66bb5a044ec961ba8ee3b045cc, type: 3} + - {fileID: 21300000, guid: a92b08a118b7d46f59dd091acb2e4102, type: 3} + - {fileID: 21300000, guid: f0a480312d1664a9d9c7749fed3eb1b5, type: 3} + - {fileID: 21300000, guid: 03bc547cc0049594bae51f00903eedef, type: 3} + - {fileID: 21300000, guid: ab808050bc535a643afaf4755050339e, type: 3} + - {fileID: 21300000, guid: d7af8fdea3ead3c4b8a4e54d014b255d, type: 3} + portraitsFace: 2 + setSayDialog: {fileID: 0} + description: +--- !u!4 &275029864 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 400000, guid: b20518d45890e4be59ba82946f88026c, type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 275029862} + 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: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &534534503 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110270, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 534534504} + - component: {fileID: 534534506} + - component: {fileID: 534534505} + m_Layer: 0 + m_Name: Right + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &534534504 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410270, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 534534503} + 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: 1544660787} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 460.43, y: -1000} + m_SizeDelta: {x: 1000, y: 1000} + m_Pivot: {x: 0.5, y: 0} +--- !u!114 &534534505 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410270, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 534534503} + 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: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &534534506 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22210270, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 534534503} +--- !u!1 &599196444 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110282, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 599196445} + - component: {fileID: 599196447} + - component: {fileID: 599196446} + m_Layer: 0 + m_Name: Left + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &599196445 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410280, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 599196444} + 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: 1544660787} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: -460.43, y: -1000} + m_SizeDelta: {x: 1000, y: 1000} + m_Pivot: {x: 0.5, y: 0} +--- !u!114 &599196446 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410284, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 599196444} + 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: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &599196447 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22210278, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 599196444} +--- !u!1 &1085130771 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110272, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1085130772} + - component: {fileID: 1085130774} + - component: {fileID: 1085130773} + m_Layer: 0 + m_Name: Offscreen Left + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1085130772 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410272, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1085130771} + 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: 1544660787} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: -1300, y: -1000} + m_SizeDelta: {x: 1000, y: 1000} + m_Pivot: {x: 0.5, y: 0} +--- !u!114 &1085130773 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410272, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1085130771} + 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: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &1085130774 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22210272, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1085130771} +--- !u!1 &1226317641 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1226317643} + - component: {fileID: 1226317642} + m_Layer: 0 + m_Name: _FungusState + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1226317642 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1226317641} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 61dddfdc5e0e44ca298d8f46f7f5a915, type: 3} + m_Name: + m_EditorClassIdentifier: + selectedFlowchart: {fileID: 1755499606} +--- !u!4 &1226317643 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1226317641} + 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: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1290383786 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1290383790} + - component: {fileID: 1290383789} + - component: {fileID: 1290383788} + - component: {fileID: 1290383787} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1290383787 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1290383786} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1997211142, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ForceModuleActive: 0 +--- !u!114 &1290383788 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1290383786} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1290383789 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1290383786} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 5 +--- !u!4 &1290383790 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1290383786} + 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: 0} + m_RootOrder: 6 + m_LocalEulerAnglesHint: {x: 179.999, y: 179.999, z: 179.999} +--- !u!1 &1311069593 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110278, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1311069594} + - component: {fileID: 1311069595} + - component: {fileID: 1311069596} + m_Layer: 0 + m_Name: Middle + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1311069594 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410276, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1311069593} + 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: 1544660787} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 0, y: -1000} + m_SizeDelta: {x: 1000, y: 1000} + m_Pivot: {x: 0.5, y: 0} +--- !u!222 &1311069595 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22210274, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1311069593} +--- !u!114 &1311069596 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410280, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1311069593} + 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: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!1 &1544660786 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110276, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1544660787} + - component: {fileID: 1544660791} + - component: {fileID: 1544660790} + - component: {fileID: 1544660789} + - component: {fileID: 1544660788} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1544660787 +RectTransform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22410274, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1544660786} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_Children: + - {fileID: 1311069594} + - {fileID: 599196445} + - {fileID: 534534504} + - {fileID: 1085130772} + - {fileID: 205269090} + m_Father: {fileID: 2073331544} + m_RootOrder: 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, y: 0} +--- !u!225 &1544660788 +CanvasGroup: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22510270, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1544660786} + m_Enabled: 1 + m_Alpha: 1 + m_Interactable: 1 + m_BlocksRaycasts: 0 + m_IgnoreParentGroups: 0 +--- !u!114 &1544660789 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410276, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1544660786} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 1 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 1600, y: 1200} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 1 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 +--- !u!114 &1544660790 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410278, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1544660786} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!223 &1544660791 +Canvas: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 22310270, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1544660786} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 1 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 25 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!1 &1726345438 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1726345443} + - component: {fileID: 1726345442} + - component: {fileID: 1726345441} + - component: {fileID: 1726345440} + - component: {fileID: 1726345439} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1726345439 +AudioListener: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1726345438} + m_Enabled: 1 +--- !u!124 &1726345440 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1726345438} + m_Enabled: 1 +--- !u!92 &1726345441 +Behaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1726345438} + m_Enabled: 1 +--- !u!20 &1726345442 +Camera: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1726345438} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 1 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 0 + m_AllowMSAA: 1 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 + m_StereoMirrorMode: 0 +--- !u!4 &1726345443 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1726345438} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1745642867 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 100000, guid: b20518d45890e4be59ba82946f88026c, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1745642869} + - component: {fileID: 1745642868} + m_Layer: 0 + m_Name: Sherlock + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1745642868 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11400000, guid: b20518d45890e4be59ba82946f88026c, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1745642867} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 25fb867d2049d41f597aefdd6b19f598, type: 3} + m_Name: + m_EditorClassIdentifier: + nameText: Sherlock + nameColor: {r: 1, g: 1, b: 1, a: 1} + soundEffect: {fileID: 0} + portraits: + - {fileID: 21300000, guid: b9482ea03e69b5a4aa5e7827da354549, type: 3} + - {fileID: 21300000, guid: 7497fd82318972540af8666a234a9685, type: 3} + - {fileID: 21300000, guid: 75b6e7c8c9b6b4d40ae30dc671be34b7, type: 3} + - {fileID: 21300000, guid: 5ba6e5e5e65bc084ba912d2d2d8718df, type: 3} + - {fileID: 21300000, guid: e7a0368af3f28b1438c458df61e691c1, type: 3} + - {fileID: 21300000, guid: ed8fca01dcf5bfc4f86bc063889a5013, type: 3} + - {fileID: 21300000, guid: a3710c5af5b436a46b8d0ff4235d1dfe, type: 3} + - {fileID: 21300000, guid: 58f5b79d262f6814bb4ebb44e29efe90, type: 3} + - {fileID: 21300000, guid: 3fd077b79b3018945961e206b6435268, type: 3} + portraitsFace: 1 + setSayDialog: {fileID: 0} + description: +--- !u!4 &1745642869 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 400000, guid: b20518d45890e4be59ba82946f88026c, type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1745642867} + 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: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1755499605 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 142980, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 1755499610} + - component: {fileID: 1755499606} + - component: {fileID: 1755499608} + - component: {fileID: 1755499609} + - component: {fileID: 1755499607} + - component: {fileID: 1755499612} + - component: {fileID: 1755499611} + - component: {fileID: 1755499614} + - component: {fileID: 1755499613} + - component: {fileID: 1755499616} + - component: {fileID: 1755499615} + - component: {fileID: 1755499622} + - component: {fileID: 1755499621} + - component: {fileID: 1755499620} + - component: {fileID: 1755499619} + - component: {fileID: 1755499628} + - component: {fileID: 1755499629} + - component: {fileID: 1755499626} + - component: {fileID: 1755499625} + - component: {fileID: 1755499618} + - component: {fileID: 1755499617} + - component: {fileID: 1755499624} + - component: {fileID: 1755499623} + - component: {fileID: 1755499630} + - component: {fileID: 1755499633} + - component: {fileID: 1755499632} + - component: {fileID: 1755499631} + - component: {fileID: 1755499634} + - component: {fileID: 1755499627} + - component: {fileID: 1755499636} + - component: {fileID: 1755499635} + - component: {fileID: 1755499637} + - component: {fileID: 1755499638} + m_Layer: 0 + m_Name: Flowchart + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1755499606 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11430050, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7a334fe2ffb574b3583ff3b18b4792d3, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 1 + scrollPos: {x: 350.5, y: 64} + variablesScrollPos: {x: 0, y: 10} + variablesExpanded: 1 + blockViewHeight: 400 + zoom: 1 + scrollViewRect: + serializedVersion: 2 + x: -343 + y: -340 + width: 1114 + height: 859 + selectedBlocks: + - {fileID: 1755499608} + selectedCommands: + - {fileID: 1755499607} + variables: + - {fileID: 1755499612} + - {fileID: 1755499611} + - {fileID: 1755499622} + - {fileID: 1755499621} + - {fileID: 1755499620} + - {fileID: 1755499619} + - {fileID: 1755499618} + - {fileID: 1755499617} + - {fileID: 1755499630} + - {fileID: 1755499634} + - {fileID: 1755499627} + - {fileID: 1755499637} + description: + stepPause: 0 + colorCommands: 1 + hideComponents: 1 + saveSelection: 1 + localizationId: + showLineNumbers: 0 + hideCommands: [] + luaEnvironment: {fileID: 0} + luaBindingName: flowchart +--- !u!114 &1755499607 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f608b8c9fb3044200aac956492d8d586, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 1 + indentLevel: 0 + conversationText: + stringRef: {fileID: 0} + stringVal: 'john bored left: I have a game for you. + + sherlock sarcastic right: Do you, John. + + Alright, let''s have it then. + + john: I''ve picked 2 numbers at random between 1 and 100. + + sherlock eyeroll: I know binary search John. + + john apologetic: No, it''s not that game. + + confident: You need to deduce the starting numbers based on their results. + + sherlock thinking: Deduce you say, ... Proceed. + + john pleased: One value multiplied by the other is {$AMulB}. + + The atan of their ratio is {$AtanAOverB} + + The maximum value passed through a 1-100 S Curve is {$maxSCurve} + + One value''s Log is {$LogA} + + One Value''s Exp is {$ExpB} + + The square root of the maximum value is {$SqrtMax} + + AND... the square root of the maximum remapped between the two values is {$remapped} + + sherlock smirk: ... + + john annoyed: Really! + + sherlock triumphant: {$StartingA} & {$StartingB} + + john laughing: Yes, Amazing! + + sherlock hide: + + john hide:' +--- !u!114 &1755499608 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 11433304, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3d3d73aef2cfc4f51abf34ac00241f60, type: 3} + m_Name: + m_EditorClassIdentifier: + nodeRect: + serializedVersion: 2 + x: 69 + y: 70 + width: 120 + height: 40 + tint: {r: 1, g: 1, b: 1, a: 1} + useCustomTint: 0 + itemId: 0 + blockName: Start + description: + eventHandler: {fileID: 1755499609} + commandList: + - {fileID: 1755499614} + - {fileID: 1755499616} + - {fileID: 1755499613} + - {fileID: 1755499615} + - {fileID: 1755499629} + - {fileID: 1755499628} + - {fileID: 1755499633} + - {fileID: 1755499632} + - {fileID: 1755499636} + - {fileID: 1755499631} + - {fileID: 1755499626} + - {fileID: 1755499625} + - {fileID: 1755499624} + - {fileID: 1755499623} + - {fileID: 1755499635} + - {fileID: 1755499638} + - {fileID: 1755499607} +--- !u!114 &1755499609 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 11462346, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d2f6487d21a03404cb21b245f0242e79, type: 3} + m_Name: + m_EditorClassIdentifier: + parentBlock: {fileID: 1755499608} + waitForFrames: 1 +--- !u!4 &1755499610 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 467082, guid: 5e7fbc8d4eb714b279eeeef2262c1e1a, type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + 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: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1755499611 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: StartingB + value: 0 +--- !u!114 &1755499612 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: StartingA + value: 0 +--- !u!114 &1755499613 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0ce1a662ad70c46f4b2de306ed2627a2, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 3 + indentLevel: 0 + variable: {fileID: 1755499611} + minValue: + floatRef: {fileID: 0} + floatVal: 2 + maxValue: + floatRef: {fileID: 0} + floatVal: 99 +--- !u!114 &1755499614 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0ce1a662ad70c46f4b2de306ed2627a2, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 2 + indentLevel: 0 + variable: {fileID: 1755499612} + minValue: + floatRef: {fileID: 0} + floatVal: 2 + maxValue: + floatRef: {fileID: 0} + floatVal: 99 +--- !u!114 &1755499615 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b9c834185b491334d8e41ca4fc49a56e, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 5 + indentLevel: 0 + inValue: + floatRef: {fileID: 1755499611} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499611} + floatVal: 0 + function: 0 +--- !u!114 &1755499616 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b9c834185b491334d8e41ca4fc49a56e, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 4 + indentLevel: 0 + inValue: + floatRef: {fileID: 1755499612} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499612} + floatVal: 0 + function: 0 +--- !u!114 &1755499617 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: max + value: 0 +--- !u!114 &1755499618 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: SqrtMax + value: 0 +--- !u!114 &1755499619 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: ExpB + value: 0 +--- !u!114 &1755499620 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: LogA + value: 0 +--- !u!114 &1755499621 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: AOverB + value: 0 +--- !u!114 &1755499622 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: AMulB + value: 0 +--- !u!114 &1755499623 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6e52daa13ab8fe7499a7774ebc194fc5, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 12 + indentLevel: 0 + inValue: + floatRef: {fileID: 1755499617} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499618} + floatVal: 0 +--- !u!114 &1755499624 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 514ec18f5085cba48bbe6701e4697eb0, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 11 + indentLevel: 0 + function: 1 + inLHSValue: + floatRef: {fileID: 1755499612} + floatVal: 0 + inRHSValue: + floatRef: {fileID: 1755499611} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499617} + floatVal: 0 +--- !u!114 &1755499625 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f28df8ed8a80fa345b3b5e3dcacdea65, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 10 + indentLevel: 0 + inValue: + floatRef: {fileID: 1755499611} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499619} + floatVal: 0 +--- !u!114 &1755499626 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 47ecda391b679d8449893d4466f41b13, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 9 + indentLevel: 0 + inValue: + floatRef: {fileID: 1755499612} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499620} + floatVal: 0 + mode: 1 +--- !u!114 &1755499627 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: min + value: 0 +--- !u!114 &1755499628 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fb77d0ce495044f6e9feb91b31798e8c, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 6 + indentLevel: 0 + variable: {fileID: 1755499622} + setOperator: 4 + booleanData: + booleanRef: {fileID: 0} + booleanVal: 0 + integerData: + integerRef: {fileID: 0} + integerVal: 0 + floatData: + floatRef: {fileID: 1755499611} + floatVal: 0 + stringData: + stringRef: {fileID: 0} + stringVal: +--- !u!114 &1755499629 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fb77d0ce495044f6e9feb91b31798e8c, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 7 + indentLevel: 0 + variable: {fileID: 1755499622} + setOperator: 0 + booleanData: + booleanRef: {fileID: 0} + booleanVal: 0 + integerData: + integerRef: {fileID: 0} + integerVal: 0 + floatData: + floatRef: {fileID: 1755499612} + floatVal: 0 + stringData: + stringRef: {fileID: 0} + stringVal: +--- !u!114 &1755499630 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: AtanAOverB + value: 0 +--- !u!114 &1755499631 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ee9ab1525ab1b794489f2517aab1d5e2, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 15 + indentLevel: 0 + function: 4 + inValue: + floatRef: {fileID: 1755499621} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499630} + floatVal: 0 +--- !u!114 &1755499632 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fb77d0ce495044f6e9feb91b31798e8c, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 14 + indentLevel: 0 + variable: {fileID: 1755499621} + setOperator: 5 + booleanData: + booleanRef: {fileID: 0} + booleanVal: 0 + integerData: + integerRef: {fileID: 0} + integerVal: 0 + floatData: + floatRef: {fileID: 1755499611} + floatVal: 0 + stringData: + stringRef: {fileID: 0} + stringVal: +--- !u!114 &1755499633 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fb77d0ce495044f6e9feb91b31798e8c, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 13 + indentLevel: 0 + variable: {fileID: 1755499621} + setOperator: 0 + booleanData: + booleanRef: {fileID: 0} + booleanVal: 0 + integerData: + integerRef: {fileID: 0} + integerVal: 0 + floatData: + floatRef: {fileID: 1755499612} + floatVal: 0 + stringData: + stringRef: {fileID: 0} + stringVal: +--- !u!114 &1755499634 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: remapped + value: 0 +--- !u!114 &1755499635 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 78d80bb5401d8044eb9eee0d4eb0b645, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 17 + indentLevel: 0 + initialRangeLower: + floatRef: {fileID: 1755499627} + floatVal: 0 + initialRangeUpper: + floatRef: {fileID: 1755499617} + floatVal: 1 + value: + floatRef: {fileID: 1755499618} + floatVal: 0 + newRangeLower: + floatRef: {fileID: 0} + floatVal: 0 + newRangeUpper: + floatRef: {fileID: 0} + floatVal: 100 + outValue: + floatRef: {fileID: 1755499634} + floatVal: 0 +--- !u!114 &1755499636 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 514ec18f5085cba48bbe6701e4697eb0, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 16 + indentLevel: 0 + function: 0 + inLHSValue: + floatRef: {fileID: 1755499612} + floatVal: 0 + inRHSValue: + floatRef: {fileID: 1755499611} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499627} + floatVal: 0 +--- !u!114 &1755499637 +MonoBehaviour: + m_ObjectHideFlags: 2 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 705fa1ac97df74e3a84ff952ffd923f1, type: 3} + m_Name: + m_EditorClassIdentifier: + scope: 0 + key: maxSCurve + value: 0 +--- !u!114 &1755499638 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 1755499605} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c03f48fc50d3747478ad85653a21a5f5, type: 3} + m_Name: + m_EditorClassIdentifier: + itemId: 18 + indentLevel: 0 + inValue: + floatRef: {fileID: 1755499617} + floatVal: 0 + outValue: + floatRef: {fileID: 1755499637} + floatVal: 0 + curve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 2 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + - serializedVersion: 2 + time: 100 + value: 100 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 0 +--- !u!1 &2073331542 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 110274, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + serializedVersion: 5 + m_Component: + - component: {fileID: 2073331544} + - component: {fileID: 2073331543} + m_Layer: 0 + m_Name: Stage + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2073331543 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 11410274, guid: c6289d5f8fa843145a2355af9cb09719, + type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073331542} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6f6478b25a400c642b2dee75f022ab12, type: 3} + m_Name: + m_EditorClassIdentifier: + portraitCanvas: {fileID: 1544660791} + dimPortraits: 1 + dimColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + fadeDuration: 0.75 + moveDuration: 1 + fadeEaseType: 4 + shiftOffset: {x: 0, y: 0} + defaultPosition: {fileID: 1311069596} + positions: + - {fileID: 599196445} + - {fileID: 1311069594} + - {fileID: 534534504} + - {fileID: 1085130772} + - {fileID: 205269090} +--- !u!4 &2073331544 +Transform: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 410270, guid: c6289d5f8fa843145a2355af9cb09719, type: 2} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 2073331542} + 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: + - {fileID: 1544660787} + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/FungusExamples/Math/MathQuiz.unity.meta b/Assets/FungusExamples/Math/MathQuiz.unity.meta new file mode 100644 index 00000000..7000249b --- /dev/null +++ b/Assets/FungusExamples/Math/MathQuiz.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ca798e8e7987c1d4a99c8970f179eccc +timeCreated: 1469542890 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: