Level Proto Done, Pool done
This commit is contained in:
@@ -27,9 +27,14 @@ public class PlayerController : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
// float t2=0;
|
||||
// Update is called once per frame
|
||||
void FixedUpdate()
|
||||
{
|
||||
// if(t2 < 1){
|
||||
// t2+=Time.deltaTime;
|
||||
// return;
|
||||
// }
|
||||
transform.Translate(new Vector3(movingSpeed,0), Space.World);
|
||||
|
||||
input = Mathf.Lerp(input, dif / inputRange, inputSmoothness);
|
||||
@@ -37,7 +42,7 @@ public class PlayerController : MonoBehaviour
|
||||
transform.Translate(new Vector3(0,input * verticalSpeed), Space.World);
|
||||
transform.localEulerAngles = new Vector3(0,0,input * rotationRange);
|
||||
|
||||
txtScore.text = transform.position.x.ToString("n0");
|
||||
txtScore.text = (transform.position.x < 0) ? "" : transform.position.x.ToString("n0");
|
||||
|
||||
movingSpeed += speedIncremental * Time.deltaTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user