Repair prefabs and edit side speed
This commit is contained in:
parent
2768930e01
commit
7ac04aa689
@ -199,7 +199,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
type: 2
|
type: 2
|
||||||
speed: 10
|
speed: 20
|
||||||
--- !u!65 &8238111678033492397
|
--- !u!65 &8238111678033492397
|
||||||
BoxCollider:
|
BoxCollider:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -199,7 +199,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
type: 1
|
type: 1
|
||||||
speed: 10
|
speed: 5
|
||||||
--- !u!65 &5316890779910729157
|
--- !u!65 &5316890779910729157
|
||||||
BoxCollider:
|
BoxCollider:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -82,7 +82,7 @@ public class PlayerController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
float curSpeedX = canMove ? (currentSpeed + modifier) : 0;
|
float curSpeedX = canMove ? (currentSpeed + modifier) : 0;
|
||||||
float curSpeedY = canMove ? (currentSpeed + modifier) * Input.GetAxis("Horizontal") : 0;
|
float curSpeedY = canMove ? (currentSpeed + 3.5f + modifier) * Input.GetAxis("Horizontal") : 0;
|
||||||
|
|
||||||
moveDirection = (platformForward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime);
|
moveDirection = (platformForward * curSpeedX * Time.deltaTime) + (transform.right * curSpeedY * Time.deltaTime);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user