shadowplaycoding

P002_Star

Sep 13th, 2019 (edited)
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Star
  6. {
  7.     public string Name {get; protected set;}
  8.     public int NumberOfPlanets {get; protected set;}
  9.  
  10.     public Star(string name, int numberOfPlanets){
  11.         this.Name = name;
  12.         this.NumberOfPlanets = numberOfPlanets;
  13.     }
  14. }
  15.  
  16. /*
  17. Copyright Shadowplay Coding 2021 - see www.shadowplaycoding.com for licensing details
  18. Removing this comment forfits any rights given to the user under licensing.
  19. */
Add Comment
Please, Sign In to add comment