diff --git a/docs/ScriptReference/Interfaces/JCS_Instance.md b/docs/ScriptReference/Interfaces/JCS_Instance.md index 44945f57..978df70e 100644 --- a/docs/ScriptReference/Interfaces/JCS_Instance.md +++ b/docs/ScriptReference/Interfaces/JCS_Instance.md @@ -1,3 +1,51 @@ # JCS_Instance Singleton instance interface. + +This file contain three classes. + +### 1) JCS_Instance + +See `Example.cs`: + +```cs + public class Example : JCS_Instance + { + private void Awake () + { + instance = this; + } + } +``` + +### 2) JCS_InstanceOld + +Singleton instance interface to keep the old instance. + +See `ExampleOld.cs`: + +```cs + public class ExampleOld : JCS_InstanceOld + { + private void Awake () + { + CheckInstance(this); + } + } +``` + +### 3) JCS_InstanceNew + +Check singleton for keep the old one. + +See `ExampleNew.cs`: + +```cs + public class ExampleNew : JCS_InstanceNew + { + private void Awake () + { + CheckInstance(this); + } + } +``` diff --git a/docs/ScriptReference/Interfaces/JCS_Settings.md b/docs/ScriptReference/Interfaces/JCS_Settings.md index e7354af9..3d7b2d07 100644 --- a/docs/ScriptReference/Interfaces/JCS_Settings.md +++ b/docs/ScriptReference/Interfaces/JCS_Settings.md @@ -17,10 +17,10 @@ Interface of all setting class. ## Example -ExampleSetting.cs +Example.cs ```cs - public class ExampleSetting : MonoBehaviour + public class Example : JCS_Settings { private void Awake () {