Advertisement
shadowplaycoding

P020_Star

Apr 29th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4.  
  5. public class Star {
  6.  
  7.     public string starName { get; protected set; }
  8.     public int numberOfPlanets { get; protected set; }
  9.  
  10.     public List<Planet> planetList;
  11.  
  12.     public Vector3 starPosition {get; set;}
  13.  
  14.     public Star(string name, int planets)
  15.     {
  16.         this.starName = name;
  17.         this.numberOfPlanets = planets;
  18.  
  19.         this.planetList = new List<Planet>();
  20.  
  21.         this.starPosition = new Vector3();
  22.     }
  23.  
  24.     /*
  25.    Copyright Shadowplay Coding 2017 - see www.shadowplaycoding.com for licensing details
  26.    Removing this comment forfits any rights given to the user under licensing.
  27.    */
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement