Advertisement
shadowplaycoding

P027_StarBase

Mar 4th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class StarBase {
  6.  
  7.     public List<Ship> buildCue;
  8.  
  9.     public float currentProduction;
  10.  
  11.     public StarBase()
  12.     {
  13.         this.buildCue = new List<Ship>();
  14.         this.currentProduction = 0f;
  15.     }
  16.  
  17.     public void AddShipToBuildCue(Ship ship)
  18.     {
  19.         buildCue.Add(ship);
  20.     }
  21.  
  22.     public void RemoveShipFromBuildCue(Ship ship)
  23.     {
  24.         buildCue.Remove(ship);
  25.     }
  26.  
  27.     /*
  28.     Copyright Shadowplay Coding 2017 - see www.shadowplaycoding.com for licensing details
  29.     Removing this comment forfits any rights given to the user under licensing.
  30.     */
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement