Example #1
0
        public QueueItem(GameObject item, QueueItemType type)
        {
            this.item = item;
            buildTime = 15;
            elapsedBuildTime = 0;
            completed = false;
            itemType = type;

            if (type == QueueItemType.Building || type == QueueItemType.BuildingResources)
            {
                refundReturn = item.buyCost;
            }
        }
Example #2
0
 public void AddQueueItem(GameObject item, QueueItemType type)
 {
     queueItems.Add(new QueueItem(item, type));
     queueLength = queueItems.Count;
 }