diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/ExecuteHandler.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/ExecuteHandler.cs index 3649ec39..b18f001f 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/ExecuteHandler.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/ExecuteHandler.cs @@ -8,18 +8,15 @@ using System; using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; using UnityEngine; -using MoonSharp.Interpreter; using Debug = UnityEngine.Debug; using Object = UnityEngine.Object; namespace Fungus { - - [Serializable] + /// + /// Executes an LuaScript component in the same gameobject when a condition occurs. + /// public class ExecuteHandler : MonoBehaviour, IExecuteHandlerConfigurator { [Flags] @@ -53,33 +50,26 @@ namespace Fungus } [SerializeField] protected float executeAfterTime = 1f; - public float ExecuteAfterTime { get { return executeAfterTime; } set { executeAfterTime = value; } } [SerializeField] protected bool repeatExecuteTime = true; - public bool RepeatExecuteTime { get { return repeatExecuteTime; } set { repeatExecuteTime = value; } } [SerializeField] protected float repeatEveryTime = 1f; - public float RepeatEveryTime { get { return repeatEveryTime; } set { repeatEveryTime = value; } } [SerializeField] protected int executeAfterFrames = 1; - public int ExecuteAfterFrames { get { return executeAfterFrames; } set { executeAfterFrames = value; } } [SerializeField] protected bool repeatExecuteFrame = true; - public bool RepeatExecuteFrame { get { return repeatExecuteFrame; } set { repeatExecuteFrame = value; } } [SerializeField] protected int repeatEveryFrame = 1; - public int RepeatEveryFrame { get { return repeatEveryFrame; } set { repeatEveryFrame = value; } } [SerializeField] protected bool hasFailed; [SerializeField] protected ExecuteMethod executeMethods = ExecuteMethod.Start; - public ExecuteMethod ExecuteMethods { get { return executeMethods; } set { executeMethods = value; } } [Tooltip("Name of the method on a component in this gameobject to call when executing.")] diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/FungusPrefs.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/FungusPrefs.cs index d69ce005..939db9f1 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/FungusPrefs.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/FungusPrefs.cs @@ -4,7 +4,6 @@ */ using UnityEngine; -using System.Collections; namespace Fungus { diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/InfoText.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/InfoText.cs index c4478333..d5aac860 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/InfoText.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/InfoText.cs @@ -4,7 +4,6 @@ */ using UnityEngine; -using System.Collections; namespace Fungus { diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaBindings.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaBindings.cs index 0740d208..a10cb541 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaBindings.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaBindings.cs @@ -5,15 +5,11 @@ using UnityEngine; using System; -using System.Reflection; -using System.Linq; -using System.Collections; using System.Collections.Generic; using MoonSharp.Interpreter; namespace Fungus { - /// /// Base class for a component which registers Lua Bindings. /// When the Lua Environment initialises, it finds all components in the scene that inherit @@ -178,5 +174,4 @@ namespace Fungus } } } - } \ No newline at end of file diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaEnvironment.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaEnvironment.cs index 5a8fb649..4e46b7eb 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaEnvironment.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaEnvironment.cs @@ -9,14 +9,15 @@ using System.Collections.Generic; using System; using System.Linq; using System.Diagnostics; -using System.Text.RegularExpressions; using MoonSharp.Interpreter; -using MoonSharp.Interpreter.Interop; using MoonSharp.Interpreter.Loaders; using MoonSharp.RemoteDebugger; namespace Fungus { + /// + /// Wrapper for a MoonSharp Lua Script instance. + /// public class LuaEnvironment : MonoBehaviour { /// diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaScript.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaScript.cs index 55c2ab65..abb49547 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaScript.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaScript.cs @@ -6,11 +6,6 @@ // Adapted from the Unity Test Tools project (MIT license) // https://bitbucket.org/Unity-Technologies/unitytesttools/src/a30d562427e9/Assets/UnityTestTools/ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; using UnityEngine; using MoonSharp.Interpreter; using Debug = UnityEngine.Debug; @@ -18,7 +13,9 @@ using Object = UnityEngine.Object; namespace Fungus { - + /// + /// Executes Lua script defined in a string property or in an external file. + /// public class LuaScript : MonoBehaviour { /// diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaStore.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaStore.cs index b41bf496..2e47a046 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaStore.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaStore.cs @@ -4,14 +4,10 @@ */ using UnityEngine; -using System.Collections; -using System.Collections.Generic; using MoonSharp.Interpreter; -using MoonSharp.Interpreter.Serialization; namespace Fungus { - /// /// Wrapper for a prime Lua table that persists across scene loads. /// This is useful for transferring values from one scene to another. One one LuaStore component may exist @@ -105,5 +101,4 @@ namespace Fungus } } } - } \ No newline at end of file diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs index 2743b2e1..beda183b 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs @@ -9,16 +9,14 @@ using System.Collections.Generic; using System; using System.Linq; using System.Text; -using System.Diagnostics; using System.Text.RegularExpressions; using MoonSharp.Interpreter; -using MoonSharp.Interpreter.Interop; -using MoonSharp.Interpreter.Loaders; -using MoonSharp.RemoteDebugger; namespace Fungus { - + /// + /// A collection of utilites to use in Lua for common Unity / Fungus tasks. + /// public class LuaUtils : LuaEnvironment.Initializer, StringSubstituter.ISubstitutionHandler { public enum FungusModuleOptions @@ -496,5 +494,4 @@ namespace Fungus SayDialog.activeSayDialog = sayDialog; } } - } \ No newline at end of file diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/PODTypeFactory.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/PODTypeFactory.cs index f6bccea4..953b35ce 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/PODTypeFactory.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/PODTypeFactory.cs @@ -4,11 +4,9 @@ */ using UnityEngine; -using System.Collections; namespace Fungus { - /// /// Factory class to create new instances of common POD value types used by Unity. /// Supports the same types as the SerializedProperty class: Color, Vector2, Vector3, Vector4, Quaternion & Rect. @@ -85,5 +83,4 @@ namespace Fungus return new Rect(x,y,width, height); } } - } \ No newline at end of file diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/StringSubstituter.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/StringSubstituter.cs index 7a50c2c4..1f07afac 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/StringSubstituter.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/StringSubstituter.cs @@ -4,7 +4,6 @@ */ using UnityEngine; -using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; @@ -32,10 +31,10 @@ namespace Fungus protected List substitutionHandlers = new List(); - /** - * The StringBuilder instance used to substitute strings optimally. - * This property is public to support client code optimisations. - */ + /// + /// The StringBuilder instance used to substitute strings optimally. + /// This property is public to support client code optimisations. + /// protected StringBuilder stringBuilder; public StringBuilder _StringBuilder { get { return stringBuilder; } } @@ -124,7 +123,5 @@ namespace Fungus return result; } - } - } \ No newline at end of file