Player.GetPlayer()

This commit is contained in:
pozhiloy-enotik
2022-05-11 15:30:51 +02:00
parent 4724506017
commit 375d47af6a

View File

@@ -3,6 +3,7 @@ using MelonLoader;
using UnityEngine.UI; using UnityEngine.UI;
using System.Reflection; using System.Reflection;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using DevourClient.Helpers;
namespace DevourClient.Hacks namespace DevourClient.Hacks
{ {
@@ -10,7 +11,7 @@ namespace DevourClient.Hacks
{ {
public static void Fly(float speed) //normal speed 5f public static void Fly(float speed) //normal speed 5f
{ {
NolanBehaviour nb = Object.FindObjectOfType<NolanBehaviour>(); NolanBehaviour nb = Player.GetPlayer();
Vector3 pos = nb.transform.position; Vector3 pos = nb.transform.position;
if (Input.GetKey(KeyCode.W)) if (Input.GetKey(KeyCode.W))
{ {