Advertisement
shadowplaycoding

P001_GalaxyManager

Sep 12th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class GalaxyManager : MonoBehaviour
  6. {
  7.  
  8.     public Galaxy Galaxy;
  9.  
  10.     // Start is called before the first frame update
  11.     void Start()
  12.     {
  13.  
  14.         for (int i = 0; i < Galaxy.NumberOfStars; i++)
  15.         {
  16.             Vector3 position = PositionMaths.RandomPolarPosition(0, Galaxy.MaximumRadius);
  17.             GameObject starObject = SpaceObjects.CreateSphereObject(position);
  18.         }
  19.        
  20.     }
  21.  
  22.     // Update is called once per frame
  23.     void Update()
  24.     {
  25.        
  26.     }
  27. }
  28.  
  29. /*
  30. Copyright Shadowplay Coding 2019 - see www.shadowplaycoding.com for licensing details
  31. Removing this comment forfits any rights given to the user under licensing.
  32. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement