Untitled
unknown
plain_text
2 years ago
565 B
11
Indexable
private int dropSet = 1; private int preDropSet = 0; private bool Falling = true; void Start() { } // Update is called once per frame void Update() {if (transform.position.y > -5) transform.Translate(0, -0.1f, 0); if (Input.GetKey(KeyCode.RightArrow)) if (transform.position.x < -9.5) if (Falling == true) {transform.Translate(1, 0, 0);} if (Input.GetKey(KeyCode.LeftArrow)) if (transform.position.x > -14.5) if (Falling == true) {transform.Translate(-1, 0, 0);}} }
Editor is loading...
Leave a Comment