Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        resources = ResourceManager.resources;
        name      = gameObject.name;

        buildings    = new int[6];
        buildings[0] = 0;
        buildings[1] = 0;
        buildings[2] = 0;
        buildings[3] = 0;
        buildings[4] = 0;
        buildings[5] = 0;
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     resources = new Code.Resources();
 }
Example #3
0
 // Update is called once per frame
 void Update()
 {
     resources = ResourceManager.resources;
     perClick  = ResourceManager.ToAdd(name, buildings);
 }