Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/UI/ControllerUI.cs
2025-02-03 16:38:11 +09:00

33 lines
834 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
namespace TON
{
public class ControllerUI : UIBase
{
public static ControllerUI Instance => UIManager.Singleton.GetUI<ControllerUI>(UIList.ControllerUI);
/// <summary> 조이스틱에서 컨트롤된 x 값을 Player에서 사용할 수 있도록 객체화 </summary>
public VariableJoystick joystick;
public CharacterBase linkedCharactor { get; set; }
public void OnClickJumpButton()
{
linkedCharactor.Jump();
}
public void OnClickAttackButton()
{
linkedCharactor.Attack();
}
public void OnClickSkillButton(string skill)
{
linkedCharactor.SkillAttack(skill);
}
}
}