Fixed Planet Unit spawning code

This commit is contained in:
2024-12-16 05:40:31 -06:00
parent e45adfe37f
commit cd56a6a3f7
2 changed files with 8 additions and 12 deletions

View File

@@ -26,9 +26,6 @@ public class Unit : MonoBehaviour
};
RotationSpeed = Random.value > 0.5f ? 1 : -1 * Random.Range(0.8f, 1.2f) * 4f;
BobbingOffset = Random.Range(0, (float)(2 * Math.PI));
transform.position = planet.GetSurfacePosition(Random.Range(0, 360), 0.3f);
Debug.Log($"{name} belongs to {planet.name}");
}
void Update()