
Untitled
By: a guest on
May 7th, 2012 | syntax:
C# | size: 0.83 KB | hits: 15 | expires: Never
using UnityEngine;
using System.Collections;
public class ResourceSystem : MonoBehaviour {
//Array will be of "arraySize" and be [,]
//For either current or income, it will contain each resource's values.z
static public int groupSize=2;
static public int enumSize=6;
public static int arraySize=6;
enum tableSide {current=0, income=1}
enum resource {energy=0, food=1, minerals=2, ore=3, crystal=4, metal=5, population=6};
//enum resourceIncome {energy=0, food=1, minerals=2, ore=3, crystal=4, metal=5, population=6};
float[,] resourceArray=new float[resource, tableSide];
void populateTable(float[] table){
table[energy,current]=100.0f;
table[energy,income]=10.0f;//per second
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}