Pingu Art und Bear mechanic
This commit is contained in:
@@ -79,48 +79,6 @@ public class PlayerMove : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
private void Move(float _horizontalInput, float _verticalInput)
|
||||
{
|
||||
if (_horizontalInput != 0 && horizontal == true)
|
||||
{
|
||||
if (!standUp.ispushing)
|
||||
{
|
||||
transform.rotation = Quaternion.Euler(0f, 0f, 90f);
|
||||
}
|
||||
vertical = false;
|
||||
moveDirection = new Vector3(_horizontalInput,0, 0);
|
||||
moveDirection.Normalize();
|
||||
|
||||
if (!vertical && speed <= maxspeed && !standUp.ispushing)
|
||||
{
|
||||
speed += speedincrease;
|
||||
}
|
||||
}
|
||||
else if (_verticalInput != 0 && vertical == true)
|
||||
{
|
||||
if (!standUp.ispushing)
|
||||
{
|
||||
transform.rotation = Quaternion.Euler(90f, 0f, 0f);
|
||||
}
|
||||
horizontal = false;
|
||||
moveDirection = new Vector3(0, 0, _verticalInput);
|
||||
moveDirection.Normalize();
|
||||
|
||||
if (!horizontal && speed <= maxspeed && !standUp.ispushing)
|
||||
{
|
||||
speed += speedincrease;
|
||||
}
|
||||
|
||||
}
|
||||
// else
|
||||
// {
|
||||
// StartCoroutine(Slide(slide));
|
||||
// transform.rotation = Quaternion.Euler(0f, 0f, 0f);
|
||||
// }
|
||||
//
|
||||
// transform.Translate(moveDirection * speed * Time.deltaTime, Space.World);
|
||||
//Debug.Log(moveDirection);
|
||||
}
|
||||
|
||||
IEnumerator Slide(float delay)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user