예제 #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;
    }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     resources = new Code.Resources();
 }
예제 #3
0
 // Update is called once per frame
 void Update()
 {
     resources = ResourceManager.resources;
     perClick  = ResourceManager.ToAdd(name, buildings);
 }