25 lines
780 B
C#
25 lines
780 B
C#
using UnityEngine;
|
|
using BSG.CameraEffects;
|
|
using Aki.Reflection.Patching;
|
|
using System.Reflection;
|
|
|
|
namespace ClearVision {
|
|
public class GogglesPatches : ModulePatch {
|
|
protected override MethodBase GetTargetMethod()
|
|
{
|
|
Debug.LogError("GogglesPatches GTM()");
|
|
var result = typeof(NightVision).GetMethod("method_1", BindingFlags.Instance | BindingFlags.NonPublic);
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
public class ScopePatches : ModulePatch {
|
|
protected override MethodBase GetTargetMethod()
|
|
{
|
|
Debug.LogError("ScopePatches GTM()");
|
|
var result = typeof(ThermalVision).GetMethod("method_1", BindingFlags.Instance | BindingFlags.NonPublic);
|
|
return result;
|
|
}
|
|
}
|
|
} |