From d29f96187914165cc057922ef367cde07fd50e0a Mon Sep 17 00:00:00 2001 From: Cippman Date: Fri, 13 Aug 2021 12:03:25 +0200 Subject: [PATCH] - samples #if#deffed with UNITY_EDITOR --- Editor.meta | 2 +- Editor/INFOS.txt | 1 - Samples.meta | 8 ++++++++ Samples/Runtime.meta | 8 ++++++++ {Editor => Samples/Runtime}/AnnoyingLog.cs | 5 +++-- {Editor => Samples/Runtime}/AnnoyingLog.cs.meta | 0 {Editor => Samples/Runtime}/AutoActivate.cs | 5 +++-- {Editor => Samples/Runtime}/AutoActivate.cs.meta | 0 Samples/Runtime/INFOS.txt | 2 ++ {Editor => Samples/Runtime}/INFOS.txt.meta | 0 {Editor => Samples/Runtime}/LoopActivation.cs | 5 +++-- {Editor => Samples/Runtime}/LoopActivation.cs.meta | 0 .../Runtime/com.CippSharpCore.OSC.Samples.asmdef | 8 +++----- .../com.CippSharpCore.OSC.Samples.asmdef.meta | 0 {Editor => Samples}/Scenes.meta | 0 {Editor => Samples}/Scenes/Examples.unity | 0 {Editor => Samples}/Scenes/Examples.unity.meta | 0 {Editor => Samples}/Screenshots.meta | 0 {Editor => Samples}/Screenshots/Facebook.png | Bin {Editor => Samples}/Screenshots/Facebook.png.meta | 0 {Editor => Samples}/Screenshots/Large.png | Bin {Editor => Samples}/Screenshots/Large.png.meta | 0 {Editor => Samples}/Screenshots/Screenshot 000.png | Bin .../Screenshots/Screenshot 000.png.meta | 0 {Editor => Samples}/Screenshots/Small.png | Bin {Editor => Samples}/Screenshots/Small.png.meta | 0 package.json | 2 +- 27 files changed, 32 insertions(+), 14 deletions(-) delete mode 100644 Editor/INFOS.txt create mode 100644 Samples.meta create mode 100644 Samples/Runtime.meta rename {Editor => Samples/Runtime}/AnnoyingLog.cs (95%) rename {Editor => Samples/Runtime}/AnnoyingLog.cs.meta (100%) rename {Editor => Samples/Runtime}/AutoActivate.cs (91%) rename {Editor => Samples/Runtime}/AutoActivate.cs.meta (100%) create mode 100644 Samples/Runtime/INFOS.txt rename {Editor => Samples/Runtime}/INFOS.txt.meta (100%) rename {Editor => Samples/Runtime}/LoopActivation.cs (94%) rename {Editor => Samples/Runtime}/LoopActivation.cs.meta (100%) rename Editor/com.CippSharpCore.OSC.Editor.asmdef => Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef (70%) rename Editor/com.CippSharpCore.OSC.Editor.asmdef.meta => Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef.meta (100%) rename {Editor => Samples}/Scenes.meta (100%) rename {Editor => Samples}/Scenes/Examples.unity (100%) rename {Editor => Samples}/Scenes/Examples.unity.meta (100%) rename {Editor => Samples}/Screenshots.meta (100%) rename {Editor => Samples}/Screenshots/Facebook.png (100%) rename {Editor => Samples}/Screenshots/Facebook.png.meta (100%) rename {Editor => Samples}/Screenshots/Large.png (100%) rename {Editor => Samples}/Screenshots/Large.png.meta (100%) rename {Editor => Samples}/Screenshots/Screenshot 000.png (100%) rename {Editor => Samples}/Screenshots/Screenshot 000.png.meta (100%) rename {Editor => Samples}/Screenshots/Small.png (100%) rename {Editor => Samples}/Screenshots/Small.png.meta (100%) diff --git a/Editor.meta b/Editor.meta index ae47736..88a9f62 100644 --- a/Editor.meta +++ b/Editor.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: b065f7ddeb796234cbfe890a46fbf6ff +guid: 7ccbc834c517c6d4b96cb4599166c281 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Editor/INFOS.txt b/Editor/INFOS.txt deleted file mode 100644 index 66bb50a..0000000 --- a/Editor/INFOS.txt +++ /dev/null @@ -1 +0,0 @@ -"when we're building, we don't need these!" \ No newline at end of file diff --git a/Samples.meta b/Samples.meta new file mode 100644 index 0000000..ae47736 --- /dev/null +++ b/Samples.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b065f7ddeb796234cbfe890a46fbf6ff +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Samples/Runtime.meta b/Samples/Runtime.meta new file mode 100644 index 0000000..6b9845c --- /dev/null +++ b/Samples/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4464f8a4293fba94492f30e2e2d2c3e6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/AnnoyingLog.cs b/Samples/Runtime/AnnoyingLog.cs similarity index 95% rename from Editor/AnnoyingLog.cs rename to Samples/Runtime/AnnoyingLog.cs index bbc140c..7adf13b 100644 --- a/Editor/AnnoyingLog.cs +++ b/Samples/Runtime/AnnoyingLog.cs @@ -2,10 +2,11 @@ * Author: Alessandro Salani (Cippman) */ +#if UNITY_EDITOR using System.Collections; using UnityEngine; -namespace CippSharp.Core.OSC.Editor.Examples +namespace CippSharp.Core.OSC.Samples { public class AnnoyingLog : MonoBehaviour { @@ -46,4 +47,4 @@ private void Update() } } } - +#endif diff --git a/Editor/AnnoyingLog.cs.meta b/Samples/Runtime/AnnoyingLog.cs.meta similarity index 100% rename from Editor/AnnoyingLog.cs.meta rename to Samples/Runtime/AnnoyingLog.cs.meta diff --git a/Editor/AutoActivate.cs b/Samples/Runtime/AutoActivate.cs similarity index 91% rename from Editor/AutoActivate.cs rename to Samples/Runtime/AutoActivate.cs index e94f1b0..cc8c38d 100644 --- a/Editor/AutoActivate.cs +++ b/Samples/Runtime/AutoActivate.cs @@ -1,11 +1,11 @@ /* * Author: Alessandro Salani (Cippman) */ - +#if UNITY_EDITOR using System.Collections; using UnityEngine; -namespace CippSharp.Core.OSC.Editor.Examples +namespace CippSharp.Core.OSC.Samples { public class AutoActivate : MonoBehaviour { @@ -27,3 +27,4 @@ private IEnumerator SelfActivate(float value) } } } +#endif \ No newline at end of file diff --git a/Editor/AutoActivate.cs.meta b/Samples/Runtime/AutoActivate.cs.meta similarity index 100% rename from Editor/AutoActivate.cs.meta rename to Samples/Runtime/AutoActivate.cs.meta diff --git a/Samples/Runtime/INFOS.txt b/Samples/Runtime/INFOS.txt new file mode 100644 index 0000000..af35971 --- /dev/null +++ b/Samples/Runtime/INFOS.txt @@ -0,0 +1,2 @@ +"when we're building, we don't need these!" +So Samples are #if#deffed with UNITY_EDITOR \ No newline at end of file diff --git a/Editor/INFOS.txt.meta b/Samples/Runtime/INFOS.txt.meta similarity index 100% rename from Editor/INFOS.txt.meta rename to Samples/Runtime/INFOS.txt.meta diff --git a/Editor/LoopActivation.cs b/Samples/Runtime/LoopActivation.cs similarity index 94% rename from Editor/LoopActivation.cs rename to Samples/Runtime/LoopActivation.cs index 9ad989d..08584bd 100644 --- a/Editor/LoopActivation.cs +++ b/Samples/Runtime/LoopActivation.cs @@ -1,10 +1,10 @@ /* * Author: Alessandro Salani (Cippman) */ - +#if UNITY_EDITOR using UnityEngine; -namespace CippSharp.Core.OSC.Editor.Examples +namespace CippSharp.Core.OSC.Samples { public class LoopActivation : MonoBehaviour { @@ -43,3 +43,4 @@ private void ChangeStatus() } } } +#endif \ No newline at end of file diff --git a/Editor/LoopActivation.cs.meta b/Samples/Runtime/LoopActivation.cs.meta similarity index 100% rename from Editor/LoopActivation.cs.meta rename to Samples/Runtime/LoopActivation.cs.meta diff --git a/Editor/com.CippSharpCore.OSC.Editor.asmdef b/Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef similarity index 70% rename from Editor/com.CippSharpCore.OSC.Editor.asmdef rename to Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef index a8568e6..e9dceec 100644 --- a/Editor/com.CippSharpCore.OSC.Editor.asmdef +++ b/Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef @@ -1,16 +1,14 @@ { - "name": "com.CippSharpCore.OSC.Editor", + "name": "com.CippSharpCore.OSC.Samples", "references": [ "GUID:1584b6551ba3cb24ba713ed6c45cac05" ], - "includePlatforms": [ - "Editor" - ], + "includePlatforms": [], "excludePlatforms": [], "allowUnsafeCode": false, "overrideReferences": false, "precompiledReferences": [], - "autoReferenced": true, + "autoReferenced": false, "defineConstraints": [], "versionDefines": [], "noEngineReferences": false diff --git a/Editor/com.CippSharpCore.OSC.Editor.asmdef.meta b/Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef.meta similarity index 100% rename from Editor/com.CippSharpCore.OSC.Editor.asmdef.meta rename to Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef.meta diff --git a/Editor/Scenes.meta b/Samples/Scenes.meta similarity index 100% rename from Editor/Scenes.meta rename to Samples/Scenes.meta diff --git a/Editor/Scenes/Examples.unity b/Samples/Scenes/Examples.unity similarity index 100% rename from Editor/Scenes/Examples.unity rename to Samples/Scenes/Examples.unity diff --git a/Editor/Scenes/Examples.unity.meta b/Samples/Scenes/Examples.unity.meta similarity index 100% rename from Editor/Scenes/Examples.unity.meta rename to Samples/Scenes/Examples.unity.meta diff --git a/Editor/Screenshots.meta b/Samples/Screenshots.meta similarity index 100% rename from Editor/Screenshots.meta rename to Samples/Screenshots.meta diff --git a/Editor/Screenshots/Facebook.png b/Samples/Screenshots/Facebook.png similarity index 100% rename from Editor/Screenshots/Facebook.png rename to Samples/Screenshots/Facebook.png diff --git a/Editor/Screenshots/Facebook.png.meta b/Samples/Screenshots/Facebook.png.meta similarity index 100% rename from Editor/Screenshots/Facebook.png.meta rename to Samples/Screenshots/Facebook.png.meta diff --git a/Editor/Screenshots/Large.png b/Samples/Screenshots/Large.png similarity index 100% rename from Editor/Screenshots/Large.png rename to Samples/Screenshots/Large.png diff --git a/Editor/Screenshots/Large.png.meta b/Samples/Screenshots/Large.png.meta similarity index 100% rename from Editor/Screenshots/Large.png.meta rename to Samples/Screenshots/Large.png.meta diff --git a/Editor/Screenshots/Screenshot 000.png b/Samples/Screenshots/Screenshot 000.png similarity index 100% rename from Editor/Screenshots/Screenshot 000.png rename to Samples/Screenshots/Screenshot 000.png diff --git a/Editor/Screenshots/Screenshot 000.png.meta b/Samples/Screenshots/Screenshot 000.png.meta similarity index 100% rename from Editor/Screenshots/Screenshot 000.png.meta rename to Samples/Screenshots/Screenshot 000.png.meta diff --git a/Editor/Screenshots/Small.png b/Samples/Screenshots/Small.png similarity index 100% rename from Editor/Screenshots/Small.png rename to Samples/Screenshots/Small.png diff --git a/Editor/Screenshots/Small.png.meta b/Samples/Screenshots/Small.png.meta similarity index 100% rename from Editor/Screenshots/Small.png.meta rename to Samples/Screenshots/Small.png.meta diff --git a/package.json b/package.json index daf1533..22a88e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.cippsharpcore.osc", - "version": "1.0.2", + "version": "1.0.3", "displayName": "CippSharp.OneShotCoroutine", "description": "A solution to run a Coroutine once (ignoring GameObject active status).", "unity":"2019.4",