조이스틱 동작이 자연스럽게 구현하도록 수정 및 에디터 상에서 좌우 입력과 점프 동작 추가 적용함
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user