조이스틱 동작이 자연스럽게 구현하도록 수정 및 에디터 상에서 좌우 입력과 점프 동작 추가 적용함

This commit is contained in:
aube.lee
2025-01-28 18:45:33 +09:00
parent 752d02324a
commit e04ef0c613
11 changed files with 367 additions and 207 deletions

View File

@@ -9,10 +9,19 @@ namespace TON
{
public static ControllerUI Instance => UIManager.Singleton.GetUI<ControllerUI>(UIList.ControllerUI);
/// <summary> 조이스틱에서 컨트롤된 x 값을 Player에서 사용할 수 있도록 객체화 </summary>
public VariableJoystick joystick;
private void Start()
{
public CharacterBase linkedCharactor { get; set; }
public void OnClickJumpButton()
{
linkedCharactor.Jump();
}
public void OnClickAttackButton()
{
linkedCharactor.Attack();
}
}
}