Skip to content

Commit d29f961

Browse files
committed
- samples #if#deffed with UNITY_EDITOR
1 parent 5f77e7b commit d29f961

27 files changed

+32
-14
lines changed

Editor.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/INFOS.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

Samples.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples/Runtime.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/AnnoyingLog.cs renamed to Samples/Runtime/AnnoyingLog.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
* Author: Alessandro Salani (Cippman)
33
*/
44

5+
#if UNITY_EDITOR
56
using System.Collections;
67
using UnityEngine;
78

8-
namespace CippSharp.Core.OSC.Editor.Examples
9+
namespace CippSharp.Core.OSC.Samples
910
{
1011
public class AnnoyingLog : MonoBehaviour
1112
{
@@ -46,4 +47,4 @@ private void Update()
4647
}
4748
}
4849
}
49-
50+
#endif
File renamed without changes.

Editor/AutoActivate.cs renamed to Samples/Runtime/AutoActivate.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
22
* Author: Alessandro Salani (Cippman)
33
*/
4-
4+
#if UNITY_EDITOR
55
using System.Collections;
66
using UnityEngine;
77

8-
namespace CippSharp.Core.OSC.Editor.Examples
8+
namespace CippSharp.Core.OSC.Samples
99
{
1010
public class AutoActivate : MonoBehaviour
1111
{
@@ -27,3 +27,4 @@ private IEnumerator SelfActivate(float value)
2727
}
2828
}
2929
}
30+
#endif
File renamed without changes.

Samples/Runtime/INFOS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"when we're building, we don't need these!"
2+
So Samples are #if#deffed with UNITY_EDITOR
File renamed without changes.

Editor/LoopActivation.cs renamed to Samples/Runtime/LoopActivation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* Author: Alessandro Salani (Cippman)
33
*/
4-
4+
#if UNITY_EDITOR
55
using UnityEngine;
66

7-
namespace CippSharp.Core.OSC.Editor.Examples
7+
namespace CippSharp.Core.OSC.Samples
88
{
99
public class LoopActivation : MonoBehaviour
1010
{
@@ -43,3 +43,4 @@ private void ChangeStatus()
4343
}
4444
}
4545
}
46+
#endif

Editor/com.CippSharpCore.OSC.Editor.asmdef renamed to Samples/Runtime/com.CippSharpCore.OSC.Samples.asmdef

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
2-
"name": "com.CippSharpCore.OSC.Editor",
2+
"name": "com.CippSharpCore.OSC.Samples",
33
"references": [
44
"GUID:1584b6551ba3cb24ba713ed6c45cac05"
55
],
6-
"includePlatforms": [
7-
"Editor"
8-
],
6+
"includePlatforms": [],
97
"excludePlatforms": [],
108
"allowUnsafeCode": false,
119
"overrideReferences": false,
1210
"precompiledReferences": [],
13-
"autoReferenced": true,
11+
"autoReferenced": false,
1412
"defineConstraints": [],
1513
"versionDefines": [],
1614
"noEngineReferences": false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.cippsharpcore.osc",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"displayName": "CippSharp.OneShotCoroutine",
55
"description": "A solution to run a Coroutine once (ignoring GameObject active status).",
66
"unity":"2019.4",

0 commit comments

Comments
 (0)