mirror of
https://github.com/Xevion/Rebirth.git
synced 2025-12-10 18:08:16 -06:00
Fixed Planet Unit spawning code
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user