25 lines
554 B
C#
25 lines
554 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Tree_Buildings : Buildings
|
|
{
|
|
/* public override bool Check_Upgrade()
|
|
{
|
|
if (Resources.Instance.wood > upgrade_Needs[Level - 1])
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}*/
|
|
public override void AddResources_Click()
|
|
{
|
|
Resources.Instance.wood += Level * 5;
|
|
//Debug.Log("Click_Tree");
|
|
}
|
|
public override void AddResources_Auto()
|
|
{
|
|
Resources.Instance.wood += Level - 1;
|
|
}
|
|
}
|