fix: fixed all the warnings
This commit is contained in:
@@ -240,8 +240,7 @@ namespace DevourClient.Hacks
|
|||||||
|
|
||||||
foreach (Il2Cpp.KeyBehaviour keyBehaviour in Helpers.Entities.Keys)
|
foreach (Il2Cpp.KeyBehaviour keyBehaviour in Helpers.Entities.Keys)
|
||||||
{
|
{
|
||||||
bool flag = keyBehaviour == null;
|
if (keyBehaviour == null)
|
||||||
if (flag)
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace DevourClient.Render
|
|||||||
GUI.color = color2;
|
GUI.color = color2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Texture2D lineTex;
|
public static Texture2D lineTex = default!;
|
||||||
public static void DrawLine(Vector2 pointA, Vector2 pointB, Color color, float width)
|
public static void DrawLine(Vector2 pointA, Vector2 pointB, Color color, float width)
|
||||||
{
|
{
|
||||||
Matrix4x4 matrix = GUI.matrix;
|
Matrix4x4 matrix = GUI.matrix;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace DevourClient.Helpers
|
|||||||
{
|
{
|
||||||
if (Entities.LocalPlayer_ == null)
|
if (Entities.LocalPlayer_ == null)
|
||||||
{
|
{
|
||||||
return null;
|
return null!;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Entities.LocalPlayer_.GetComponent<Il2Cpp.NolanBehaviour>();
|
return Entities.LocalPlayer_.GetComponent<Il2Cpp.NolanBehaviour>();
|
||||||
@@ -49,15 +49,15 @@ namespace DevourClient.Helpers
|
|||||||
|
|
||||||
public class Entities
|
public class Entities
|
||||||
{
|
{
|
||||||
public static GameObject LocalPlayer_;
|
public static GameObject LocalPlayer_ = default!;
|
||||||
public static GameObject[] Players;
|
public static GameObject[] Players = default!;
|
||||||
public static Il2Cpp.GoatBehaviour[] GoatsAndRats;
|
public static Il2Cpp.GoatBehaviour[] GoatsAndRats = default!;
|
||||||
public static Il2Cpp.SurvivalInteractable[] SurvivalInteractables;
|
public static Il2Cpp.SurvivalInteractable[] SurvivalInteractables = default!;
|
||||||
public static Il2Cpp.KeyBehaviour[] Keys;
|
public static Il2Cpp.KeyBehaviour[] Keys = default!;
|
||||||
public static Il2Cpp.SurvivalDemonBehaviour[] Demons;
|
public static Il2Cpp.SurvivalDemonBehaviour[] Demons = default!;
|
||||||
public static Il2Cpp.SpiderBehaviour[] Spiders;
|
public static Il2Cpp.SpiderBehaviour[] Spiders = default!;
|
||||||
public static Il2Cpp.GhostBehaviour[] Ghosts;
|
public static Il2Cpp.GhostBehaviour[] Ghosts = default!;
|
||||||
public static Il2Cpp.SurvivalAzazelBehaviour[] Azazels;
|
public static Il2Cpp.SurvivalAzazelBehaviour[] Azazels = default!;
|
||||||
|
|
||||||
public static IEnumerator GetLocalPlayer()
|
public static IEnumerator GetLocalPlayer()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user