Skip to content

Commit

Permalink
- samples #if#deffed with UNITY_EDITOR
Browse files Browse the repository at this point in the history
  • Loading branch information
Cippman committed Aug 13, 2021
1 parent 5f77e7b commit d29f961
Show file tree
Hide file tree
Showing 27 changed files with 32 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Editor/INFOS.txt

This file was deleted.

8 changes: 8 additions & 0 deletions Samples.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Samples/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Editor/AnnoyingLog.cs → Samples/Runtime/AnnoyingLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -46,4 +47,4 @@ private void Update()
}
}
}

#endif
File renamed without changes.
5 changes: 3 additions & 2 deletions Editor/AutoActivate.cs → Samples/Runtime/AutoActivate.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand All @@ -27,3 +27,4 @@ private IEnumerator SelfActivate(float value)
}
}
}
#endif
File renamed without changes.
2 changes: 2 additions & 0 deletions Samples/Runtime/INFOS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"when we're building, we don't need these!"
So Samples are #if#deffed with UNITY_EDITOR
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -43,3 +43,4 @@ private void ChangeStatus()
}
}
}
#endif
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d29f961

Please sign in to comment.