Skip to content

Commit

Permalink
fix: revert to C#11
Browse files Browse the repository at this point in the history
  • Loading branch information
Azn9 committed May 25, 2024
1 parent 7de784f commit fd72327
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions AccuracyIndicator/Indicator/InGameIndicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace AccuracyIndicator.Indicator;

[RegisterTypeInIl2Cpp]
public class InGameIndicator(IntPtr intPtr) : MonoBehaviour(intPtr)
public class InGameIndicator : MonoBehaviour
{
private static readonly float DefaultY = -ConvertHeightFrom1080P(420);

Expand All @@ -17,6 +17,10 @@ public class InGameIndicator(IntPtr intPtr) : MonoBehaviour(intPtr)
private float _totalDelay;
private int _totalHits;

public InGameIndicator(IntPtr intPtr) : base(intPtr)
{
}

private void Start()
{
_antiGC.Add(this);
Expand Down Expand Up @@ -74,7 +78,7 @@ private void Update()
var totalDelay = 0f;
var countDelay = 0;

List<Object> toRemove = [];
List<Object> toRemove = new List<Object>();

foreach (var o in _hitEntries)
{
Expand Down
5 changes: 4 additions & 1 deletion AccuracyIndicator/Indicator/VictoryIndicator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace AccuracyIndicator.Indicator;

[RegisterTypeInIl2Cpp]
internal class VictoryIndicator(IntPtr intPtr) : MonoBehaviour(intPtr)
internal class VictoryIndicator : MonoBehaviour
{
private readonly Il2CppObjectList _antiGC = new();
private GameObject _canvas;
Expand All @@ -12,6 +12,9 @@ internal class VictoryIndicator(IntPtr intPtr) : MonoBehaviour(intPtr)
private Il2CppObjectList _report;
private bool _setMeanDelay;

public VictoryIndicator(IntPtr intPtr) : base(intPtr)
{
}

private void Start()
{
Expand Down

0 comments on commit fd72327

Please sign in to comment.