// Update is called once per frame void Update() { objetoRotacion.Rotate(0f, 0f, velocidadRotacion * Time.deltaTime); if (camara.position.x - transform.position.x > 130f) { central.eliminarPlaneta(this); } transform.position += new Vector3(rangoMovimientoX * Mathf.Cos(Time.time % 360), rangoMovimientoY * Mathf.Sin(Time.time % 360), 0f); }