using Obvious.Soap; using QFSW.QC; using SoapCustomVariable; using UnityEngine; namespace ShiningGames.Tools { public class GameDebugDev : MonoBehaviour { public BoolVariable IsWaterHiden; public BoolVariable IsDebugConsoleEnabled; public BoolVariable IsGearIndestructible; public BoolVariable ISeeFishDebug; [SerializeField] private BoolVariable isFlyModeEnabled; [SerializeField] private FloatVariable flyMoveSpeed; [SerializeField] private FloatVariable bobberScaleSetting; [SerializeField] private CanvasGroup mainCanvas; private QuantumConsole _quantumConsole; private void Awake() { base.gameObject.SetActive(value: false); } private void Update() { FishController[] array2; if (Input.GetKey(KeyCode.LeftShift) && Input.GetKey(KeyCode.Alpha0)) { FishController[] array = Object.FindObjectsByType(FindObjectsInactive.Exclude, FindObjectsSortMode.None); Lure lure = Object.FindFirstObjectByType(FindObjectsInactive.Exclude); FishController fishController = null; float num = float.PositiveInfinity; array2 = array; foreach (FishController fishController2 in array2) { float num2 = Vector3.Distance(lure.transform.position, fishController2.transform.position); if (num2 < num) { num = num2; fishController = fishController2; } } fishController.transform.position = lure.transform.position; fishController.GetComponent().SetLure(lure); fishController.AttachLure(lure.RBody); fishController.fishState.Value = FishState.eat; Debug.Log("lure debug attached"); } if (!Input.GetKey(KeyCode.LeftShift) || !Input.GetKey(KeyCode.Alpha9)) { return; } FishController[] array3 = Object.FindObjectsByType(FindObjectsInactive.Exclude, FindObjectsSortMode.None); Lure lure2 = Object.FindFirstObjectByType(FindObjectsInactive.Exclude); FishController fishController3 = null; float num3 = float.PositiveInfinity; array2 = array3; foreach (FishController fishController4 in array2) { float num4 = Vector3.Distance(lure2.transform.position, fishController4.transform.position); if (num4 < num3) { num3 = num4; fishController3 = fishController4; } } fishController3.GetComponent().SetLure(lure2); Debug.Log("lure debug attached"); } [Command("setbobberscale", Platform.AllPlatforms, MonoTargetType.Single)] private void SetBobberScale(float scale) { bobberScaleSetting.Value = scale; } [Command("hideui", Platform.AllPlatforms, MonoTargetType.Single)] private void HideUI(bool hide) { mainCanvas.alpha = (hide ? 0f : 1f); } [Command("iseefish", Platform.AllPlatforms, MonoTargetType.Single)] private void ISeeFish(bool value) { ISeeFishDebug.Value = value; } [Command("hidewater", Platform.AllPlatforms, MonoTargetType.Single)] private void HideWater(bool value) { IsWaterHiden.Value = value; } [Command("indestructiblegear", Platform.AllPlatforms, MonoTargetType.Single)] private void IndestructibleGear(bool value) { IsGearIndestructible.Value = value; } [Command("flymode", Platform.AllPlatforms, MonoTargetType.Single)] private void GhostMode(bool value) { isFlyModeEnabled.Value = value; } [Command("flymode_speed", Platform.AllPlatforms, MonoTargetType.Single)] private void FlyMoveSpeed(float value) { flyMoveSpeed.Value = value; } } }