Level Proto Done, Pool done

This commit is contained in:
2023-07-19 22:41:46 +05:30
parent 6918aec205
commit 7ad61c714d
16 changed files with 1489 additions and 135 deletions

View File

@@ -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;