|
|
@@ -124,7 +124,8 @@ public class PlayerController : MoveCharacter
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- return Input.GetKeyDown(KeyCode.K) || isClickBtnSouth;
|
|
|
+ //return Input.GetKeyDown(KeyCode.K) || isClickBtnSouth;
|
|
|
+ return isClickBtnSouth;
|
|
|
}
|
|
|
}
|
|
|
[HideInInspector]
|
|
|
@@ -142,7 +143,8 @@ public class PlayerController : MoveCharacter
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- return Input.GetKeyDown(KeyCode.J) || isClickBtnWest;
|
|
|
+ //return Input.GetKeyDown(KeyCode.J) || isClickBtnWest;
|
|
|
+ return isClickBtnWest;
|
|
|
}
|
|
|
}
|
|
|
[HideInInspector]
|
|
|
@@ -151,7 +153,8 @@ public class PlayerController : MoveCharacter
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- return Input.GetKeyDown(KeyCode.I) || isClickBtnNorth;
|
|
|
+ //return Input.GetKeyDown(KeyCode.I) || isClickBtnNorth;
|
|
|
+ return isClickBtnNorth;
|
|
|
}
|
|
|
}
|
|
|
[HideInInspector]
|
|
|
@@ -160,7 +163,8 @@ public class PlayerController : MoveCharacter
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
- return Input.GetKey(KeyCode.I) || isKeepBtnNorth;
|
|
|
+ //return Input.GetKey(KeyCode.I) || isKeepBtnNorth;
|
|
|
+ return isKeepBtnNorth;
|
|
|
}
|
|
|
}
|
|
|
[HideInInspector]
|
|
|
@@ -201,6 +205,7 @@ public class PlayerController : MoveCharacter
|
|
|
|
|
|
private void Awake()
|
|
|
{
|
|
|
+ transform.position = new Vector3(144, 0, 0);
|
|
|
if (!PlayersInput.instance[0])
|
|
|
{
|
|
|
PlayersInput.instance[0] = this;
|
|
|
@@ -230,22 +235,22 @@ public class PlayerController : MoveCharacter
|
|
|
// isClickBtnJump = true;
|
|
|
//}
|
|
|
|
|
|
- if (Input.GetKeyDown(KeyCode.J))
|
|
|
- {
|
|
|
- isClickBtnWest = true;
|
|
|
- }
|
|
|
- if (Input.GetKeyDown(KeyCode.K))
|
|
|
- {
|
|
|
- isClickBtnSouth = true;
|
|
|
- }
|
|
|
- if (Input.GetKeyDown(KeyCode.L))
|
|
|
- {
|
|
|
- isClickBtnEast = true;
|
|
|
- }
|
|
|
- if (Input.GetKeyDown(KeyCode.I))
|
|
|
- {
|
|
|
- isClickBtnNorth = true;
|
|
|
- }
|
|
|
+ //if (Input.GetKeyDown(KeyCode.J))
|
|
|
+ //{
|
|
|
+ // isClickBtnWest = true;
|
|
|
+ //}
|
|
|
+ //if (Input.GetKeyDown(KeyCode.K))
|
|
|
+ //{
|
|
|
+ // isClickBtnSouth = true;
|
|
|
+ //}
|
|
|
+ //if (Input.GetKeyDown(KeyCode.L))
|
|
|
+ //{
|
|
|
+ // isClickBtnEast = true;
|
|
|
+ //}
|
|
|
+ //if (Input.GetKeyDown(KeyCode.I))
|
|
|
+ //{
|
|
|
+ // isClickBtnNorth = true;
|
|
|
+ //}
|
|
|
}
|
|
|
//ÊÖ±ú°´ÏÂLB
|
|
|
void OnSprinting()
|