RTS game data store in unity5.0

Upgrade system in RTS game
hi… To make upgrade system of building, need to specify data of all building as per level. I am working on game Real time MMO RTS Turn based battle game. I want make upgrade system of each building. Please let me know how it can be possible ? Where should i have to store data of building as per level upgrade ? How to access details of building.

Please Help me Thank you

There is more than one way, here is one way you could do it.

In this example I will go with each level increasing the building health.

  1. Use an excel document to store the values of each building. Using commas in the example, just put each piece of data in its own cell.

I.e.

Building Name, 1, 2, 3, 4, 5
Refinery, 100, 150, 175, 200, 300
Barracks, 50, 75, 100, 125, 150
//more buildings

  1. Read in the values at runtime in to your game using ExcelReaderFactory or your own preferred excel reader. Use a centralised class (aka manager) which handles all the data you will read in from any external files.

  2. Store each value in to a dictionary, i.e.

    public class BuildingLevel {
    public int Health;
    }

    public Dictionary<string, Building> buildings;

  3. Access the dictionary using the building name to pull out the data stored in BuildingLevel.

    Building building;
    if (!building.TryGetValue(“Barracks”, out building)) {
    //the building didn’t exist so handle it here
    }
    myHealth = building.Health;