Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
developer9998 committed Sep 9, 2024
1 parent 290b47d commit 847fc09
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
10 changes: 4 additions & 6 deletions GorillaShirts/Behaviours/Main.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using BepInEx;
using BepInEx.Bootstrap;
using GorillaNetworking;
using GorillaShirts.Buttons;
using GorillaShirts.Extensions;
using GorillaShirts.Interaction;
Expand All @@ -17,23 +16,22 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using Hashtable = ExitGames.Client.Photon.Hashtable;
using Button = GorillaShirts.Interaction.Button;
using System.Net;
using System.Net.Http;
using Hashtable = ExitGames.Client.Photon.Hashtable;

namespace GorillaShirts.Behaviours
{
public class Main : MonoBehaviourPunCallbacks
{
public static Main Instance;

public static Dictionary<string, Shirt> TotalInitializedShirts = [];
public static Dictionary<string, Shirt> TotalInitializedShirts = [];

public ShirtRig LocalRig;

Expand Down Expand Up @@ -88,7 +86,7 @@ public Shirt SelectedShirt
get => SelectedPack.PackagedShirts[SelectedPack.CurrentItem];
set
{
foreach(var pack in ConstructedPacks)
foreach (var pack in ConstructedPacks)
{
if (pack.PackagedShirts.Contains(value))
{
Expand Down
2 changes: 1 addition & 1 deletion GorillaShirts/Locations/City.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace GorillaShirts.Locations
{
internal class City : IStandLocation
{
public bool IsInZone(GTZone zone) => zone == GTZone.city || zone == GTZone.cityNoBuildings;
public bool IsInZone(GTZone zone) => zone == GTZone.city || zone == GTZone.cityNoBuildings;
public Tuple<UnityEngine.Vector3, UnityEngine.Vector3> Location => Tuple.Create<UnityEngine.Vector3, UnityEngine.Vector3>(new(-50.676f, 16.7854f, -99.5654f), new(0f, 211.0678f, 0f));
}
}
2 changes: 1 addition & 1 deletion GorillaShirts/Models/Rig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void ClearObjects()
if (Objects == null || Objects.Count == 0) return;

var objectsToDestroy = Objects.SelectMany(selector => selector.Value);
for(int i = 0; i < objectsToDestroy.Count(); i++)
for (int i = 0; i < objectsToDestroy.Count(); i++)
{
UnityEngine.Object.Destroy(objectsToDestroy.ElementAt(i));
}
Expand Down
1 change: 0 additions & 1 deletion GorillaShirts/Tools/Configuration.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using BepInEx.Configuration;
using System;
using System.Security.Cryptography;
using UnityEngine;
using Random = UnityEngine.Random;

Expand Down
3 changes: 1 addition & 2 deletions GorillaShirts/Tools/Logging.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using BepInEx.Configuration;
using BepInEx.Logging;
using BepInEx.Logging;

namespace GorillaShirts.Tools
{
Expand Down
4 changes: 1 addition & 3 deletions GorillaShirts/Utilities/RigUtils.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ExitGames.Client.Photon;
using HarmonyLib;
using Photon.Pun;
using HarmonyLib;
using Photon.Realtime;
using System;
using System.Reflection;
Expand Down

0 comments on commit 847fc09

Please sign in to comment.