void Update() { /*if (Input.GetButtonDown("Fire2")) * SetSprite(); */ transform.Rotate(0, 0, rotationSpeed * Time.deltaTime); //rotates 50 degrees per second around z axis transform.Translate(-Time.deltaTime * moveSpeed, 0f, 0f, Space.World); if (transform.position.x <= -5 && !pointAdded && middle) { pointAdded = true; system.AddScore(); } if (transform.position.x <= -10) { if (!middle) { ResetMeteor(); } else { Destroy(gameObject); } } }