cheat tele NPC
This commit is contained in:
@@ -6,6 +6,7 @@ using EditorAttributes;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using BrewMonster.Scripts.UI;
|
||||
|
||||
namespace BrewMonster.Scripts
|
||||
{
|
||||
@@ -33,7 +34,9 @@ namespace BrewMonster.Scripts
|
||||
[Header("Command Buttons")]
|
||||
[SerializeField] Button _btnNoCooldown;
|
||||
[SerializeField] Button _btnToggleAutoWrath;
|
||||
|
||||
[SerializeField] Button _btnToggleTaskNpcTeleport;
|
||||
|
||||
|
||||
private bool _isAutoAddWrathEnabled = false;
|
||||
private Coroutine _autoAddWrathCoroutine;
|
||||
|
||||
@@ -53,10 +56,18 @@ namespace BrewMonster.Scripts
|
||||
//_btnClose?.onClick.AddListener(OnBtnCloseClicked);
|
||||
_btnNoCooldown?.onClick.AddListener(OnBtnNoCooldownClicked);
|
||||
_btnToggleAutoWrath?.onClick.AddListener(OnBtnToggleAutoWrathClicked);
|
||||
_btnToggleTaskNpcTeleport?.onClick.AddListener(OnBtnToggleTaskNpcTeleportClicked);
|
||||
|
||||
DontDestroyOnLoad(this);
|
||||
}
|
||||
|
||||
|
||||
public void OnBtnToggleTaskNpcTeleportClicked()
|
||||
{
|
||||
bool next = !CECUIHelper.DebugInstantTeleportToTaskNpc;
|
||||
CECUIHelper.SetDebugInstantTeleportToTaskNpc(next);
|
||||
Debug.Log($"[DlgConsole] Task NPC teleport cheat: {(next ? "ON" : "OFF")}");
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
CancelAllLoopCommands();
|
||||
|
||||
Reference in New Issue
Block a user