Advertisement
shadowplaycoding

P022_Star

Jun 29th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 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 bool starOwned = false;
  11.  
  12.     public List<Planet> planetList;
  13.  
  14.     public Vector3 starPosition {get; set;}
  15.  
  16.     public Star(string name, int planets)
  17.     {
  18.         this.starName = name;
  19.         this.numberOfPlanets = planets;
  20.  
  21.         this.planetList = new List<Planet>();
  22.  
  23.         this.starPosition = new Vector3();
  24.     }
  25.  
  26.     /*
  27.    Copyright Shadowplay Coding 2017 - see www.shadowplaycoding.com for licensing details
  28.    Removing this comment forfits any rights given to the user under licensing.
  29.    */
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement