namespace 설정 오류 수정
This commit is contained in:
@@ -3,8 +3,12 @@ using System.Collections.Generic;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
|
|
||||||
public class VariableJoystick : Joystick
|
|
||||||
|
namespace TON
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public class VariableJoystick : Joystick
|
||||||
|
{
|
||||||
public float MoveThreshold { get { return moveThreshold; } set { moveThreshold = Mathf.Abs(value); } }
|
public float MoveThreshold { get { return moveThreshold; } set { moveThreshold = Mathf.Abs(value); } }
|
||||||
|
|
||||||
[SerializeField] private float moveThreshold = 1;
|
[SerializeField] private float moveThreshold = 1;
|
||||||
@@ -58,6 +62,7 @@ public class VariableJoystick : Joystick
|
|||||||
}
|
}
|
||||||
base.HandleInput(magnitude, normalised, radius, cam);
|
base.HandleInput(magnitude, normalised, radius, cam);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum JoystickType { Fixed, Floating, Dynamic }
|
public enum JoystickType { Fixed, Floating, Dynamic }
|
||||||
|
}
|
||||||
@@ -3,10 +3,9 @@ using System.Collections.Generic;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
|
|
||||||
namespace TON
|
|
||||||
|
public class VariableJoystick : Joystick
|
||||||
{
|
{
|
||||||
public class VariableJoystick : Joystick
|
|
||||||
{
|
|
||||||
public float MoveThreshold { get { return moveThreshold; } set { moveThreshold = Mathf.Abs(value); } }
|
public float MoveThreshold { get { return moveThreshold; } set { moveThreshold = Mathf.Abs(value); } }
|
||||||
|
|
||||||
[SerializeField] private float moveThreshold = 1;
|
[SerializeField] private float moveThreshold = 1;
|
||||||
@@ -60,7 +59,6 @@ namespace TON
|
|||||||
}
|
}
|
||||||
base.HandleInput(magnitude, normalised, radius, cam);
|
base.HandleInput(magnitude, normalised, radius, cam);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public enum JoystickType { Fixed, Floating, Dynamic }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum JoystickType { Fixed, Floating, Dynamic }
|
||||||
|
|||||||
Reference in New Issue
Block a user