Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveTheAnimator committed Sep 21, 2024
1 parent 973eb93 commit f80b39f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
Binary file modified GorillaCamera/.vs/GorillaCamera/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file modified GorillaCamera/.vs/GorillaCamera/v17/.suo
Binary file not shown.
Binary file modified GorillaCamera/.vs/ProjectEvaluation/gorillacamera.metadata.v7.bin
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions GorillaCamera/GorillaCamera/GorillaCamera.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
<Reference Include="Unity.Mathematics">
<HintPath>$(GameAssemblyPath)\Unity.Mathematics.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>..\..\..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Gorilla Tag\Gorilla Tag_Data\Managed\Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="Unity.Timeline">
<HintPath>$(GameAssemblyPath)\Unity.Timeline.dll</HintPath>
</Reference>
Expand Down
14 changes: 12 additions & 2 deletions GorillaCamera/GorillaCamera/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
using GorillaCamera.Scripts.Important;
using GorillaNetworking;
using GorillaCamera.Scripts.Utils;

namespace GorillaCamera
{
[BepInDependency("org.legoandmars.gorillatag.utilla", "1.5.0")]
Expand All @@ -34,6 +33,8 @@ public class Plugin : BaseUnityPlugin
public GameObject LocalPlayerCameraObject;
public VRRig FollowingRig;
public GameObject VisibleCameraObject = null;

// Textures
private Texture2D boxTexture;
private Texture2D buttonTexture;
private Texture2D sliderTexture;
Expand All @@ -49,6 +50,7 @@ public class Plugin : BaseUnityPlugin
public bool TweenFirstPerson = true;
public float RotationTime = 0.1f;
public bool ShowCameraPositon = false;
public bool OverrideCameraPositon = false;
public bool ShowFollowingPlayerName = true;

// Competitive
Expand Down Expand Up @@ -245,7 +247,7 @@ public void OnGUI()
{
if (ShowFollowingPlayerName)
{
GUI.Label(new Rect(30, 120, panelWidth + 200, 90), "Currently Spectating: " + FollowingRig.playerText.text, FollowStyle);
GUI.Label(new Rect(30, 120, panelWidth + 200, 90), "Currently Spectating: " + FollowingRig.playerText1.text, FollowStyle);
}
}
}
Expand Down Expand Up @@ -490,6 +492,14 @@ public void OnFrameRefresh()
ShowCameraPositon = !ShowCameraPositon;
VisibleCameraObject.GetComponent<Renderer>().enabled = ShowCameraPositon;
}
if(OverrideCameraPositon)
{
VisibleCameraObject.GetComponent<Renderer>().enabled = true;
}
else
{
VisibleCameraObject.GetComponent<Renderer>().enabled = ShowCameraPositon;
}

// Competitive Adding Score
if (isCompetitiveTeam)
Expand Down

0 comments on commit f80b39f

Please sign in to comment.