Compare commits

..

No commits in common. "master" and "1.0.0" have entirely different histories.

5 changed files with 8 additions and 21 deletions

2
.gitignore vendored
View File

@ -4,8 +4,6 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
project/Terkoiz.MapZoneHighlighter/key.snk
# User-specific files
*.rsuser
*.suo

View File

@ -1,7 +1,7 @@
{
"name": "ZoneHighlighter",
"author": "Terkoiz",
"version": "1.0.1",
"version": "1.0.0",
"license": "NCSA Open Source",
"dependencies": {}
}

View File

@ -52,11 +52,6 @@ namespace Terkoiz.MapZoneHighlighter.BoundedBoxes
private void OnGUI()
{
if (Camera.main == null)
{
return;
}
ScreenPosition = UIDrawingUtil.WorldPointToScreenPoint(transform.position);
IsOnScreen = UIDrawingUtil.IsScreenPointVisible(ScreenPosition);
DistanceToCamera = Vector3.Distance(Camera.main.transform.position, transform.position);

View File

@ -30,9 +30,12 @@ namespace Terkoiz.MapZoneHighlighter
return;
}
if (_mainCamera != null && _mainCamera.gameObject.GetComponent<ColliderBoundsRenderer>() == null)
if (_mainCamera != null)
{
_mainCamera.gameObject.AddComponent<ColliderBoundsRenderer>();
if (_mainCamera.gameObject.GetComponent<ColliderBoundsRenderer>() == null)
{
_mainCamera.gameObject.AddComponent<ColliderBoundsRenderer>();
}
}
_boundsControllers = new List<ColliderBoundsController>();
@ -41,9 +44,8 @@ namespace Terkoiz.MapZoneHighlighter
if (mapZone.GetComponent<ColliderBoundsController>() == null)
{
mapZone.AddComponent<ColliderBoundsController>();
_boundsControllers.Add(mapZone.GetComponent<ColliderBoundsController>());
}
_boundsControllers.Add(mapZone.GetComponent<ColliderBoundsController>());
}
}

View File

@ -30,12 +30,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>..\Shared\References\Assembly-CSharp.dll</HintPath>
@ -87,8 +81,6 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="key.snk" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>