Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Redone #if UNITY_EDITOR Part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
FritzsHero committed Jul 10, 2019
1 parent df53666 commit 1c87f50
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 28 deletions.
2 changes: 0 additions & 2 deletions GSDRoadAutomation.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
//using System.Collections; // Unused
//using System.IO; // Unused
//using System.Text; // Unused
//using System.Runtime.Serialization.Formatters.Binary; // Unused
//using System.Runtime.Serialization; // Unused
#endif
#endregion


Expand Down
2 changes: 0 additions & 2 deletions GSDRoadEdgeObjects.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
//using System.Collections; // Unused
//using GSD; // Unused
using System.Collections.Generic;
using System.IO;
#endif
#endregion


Expand Down
2 changes: 0 additions & 2 deletions GSDRoadMeshSplinate.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
//using System.Collections; // Unused
//using GSD; // Unused
using System.Collections.Generic;
using System.IO;
#endif
#endregion


Expand Down
2 changes: 0 additions & 2 deletions GSDRoadUtility.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
//using System.Collections; // Unused
using System.IO;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;
#endif
#endregion


Expand Down
2 changes: 0 additions & 2 deletions GSDRoadUtilityT.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
//using System.Collections; // Unused
//using GSD; // Unused
using System.Collections.Generic;
#endif
#endregion


Expand Down
2 changes: 0 additions & 2 deletions GSDTerrain.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
#endif
#endregion


Expand Down
2 changes: 0 additions & 2 deletions GSDUnitTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
//using System.Collections; // Unused
//using System.IO; // Unused
//using System.Text; // Unused
//using System.Runtime.Serialization.Formatters.Binary; // Unused
//using System.Runtime.Serialization; // Unused
#endif
#endregion


Expand Down
7 changes: 2 additions & 5 deletions Spline/GSDSplineF.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
using GSD;
#endif
#endregion


Expand Down Expand Up @@ -326,7 +323,7 @@ public Vector3 GetSplineValue(float _value, bool _isTangent = false) // FH 03
// }

float param = (_value - mNodes[idx].tTime) / (mNodes[idx + 1].tTime - mNodes[idx].tTime);
param = GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
param = GSD.GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
return GetHermiteInternal(idx, param, _isTangent);
}

Expand Down Expand Up @@ -395,7 +392,7 @@ public Vector3 GetSplineValue_SkipOpt(float f, bool b = false)
// }

float param = (f - mNodes[idx].tTime) / (mNodes[idx + 1].tTime - mNodes[idx].tTime);
param = GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
param = GSD.GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
return GetHermiteInternal(idx, param, b);
}

Expand Down
7 changes: 2 additions & 5 deletions Spline/GSDSplineI.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#region "Imports"
using UnityEngine;
#if UNITY_EDITOR
using System.Collections.Generic;
using GSD;
#endif
#endregion


Expand Down Expand Up @@ -349,7 +346,7 @@ private void Setup_SplineLength()
//} // FH 03.02.19 // Do note, that someone outcommented stuff here, for whatever Reason, but why?

float param = (_value - mNodes[idx].tTime) / (mNodes[idx + 1].tTime - mNodes[idx].tTime);
param = GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
param = GSD.GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
return GetHermiteInternal(idx, param, _isTangent);
}

Expand Down Expand Up @@ -402,7 +399,7 @@ private void Setup_SplineLength()
// }

float param = (_value - mNodes[idx].tTime) / (mNodes[idx + 1].tTime - mNodes[idx].tTime);
param = GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
param = GSD.GSDRootUtil.Ease(param, mNodes[idx].EaseIO.x, mNodes[idx].EaseIO.y);
return GetHermiteInternal(idx, param, _isTangent);
}

Expand Down
6 changes: 2 additions & 4 deletions Spline/GSDSplineRepair.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#region "Imports"
#if UNITY_EDITOR
#region "Imports"
//using System.Collections; // Unused
//using System.Collections.Generic; // Unused
using UnityEngine;
using UnityEditor;
#endregion


#if UNITY_EDITOR


[ExecuteInEditMode]
public class GSDSplineRepair : MonoBehaviour
{
Expand Down

0 comments on commit 1c87f50

Please sign in to comment.