Advertisement
Guest User

ScriptableObject-Class

a guest
Nov 6th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5.  
  6. namespace Entities
  7. {
  8.     public class CorridorEntity : ScriptableObject
  9.     {
  10.         public CorridorEntity()
  11.         {
  12.             this.Params = new List<CorridorEntity.Param>();
  13.         }
  14.  
  15.         public List<CorridorEntity.Param> Params;
  16.  
  17.         [Serializable]
  18.         public class Param
  19.         {
  20.             public int Tier;
  21.  
  22.             public int Level;
  23.  
  24.             public long Cost;
  25.  
  26.             public int NumberOfWorkers;
  27.  
  28.             public long GainPerSecondPerWorker;
  29.  
  30.             public long CapacityPerWorker;
  31.  
  32.             public int WorkerWalkingSpeedPerSecond;
  33.  
  34.             public bool BigUpdate;
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement