44 lines
985 B
C#
44 lines
985 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Ruins_Buildings : Buildings
|
|
{
|
|
[Header("ÌØÓÐÄÚÈÝ")]
|
|
public List<Ruins_Node> Node_List = new List<Ruins_Node>();
|
|
public Ruins_Node current_Node;
|
|
//public bool isProducing = true;
|
|
|
|
public State state = State.isResting;
|
|
public enum State
|
|
{
|
|
isResting, isDigging
|
|
}
|
|
public override void AddResources_Click()
|
|
{
|
|
|
|
}
|
|
public override void AddResources_Auto()
|
|
{
|
|
|
|
}
|
|
public override void SpecalUpdate()
|
|
{
|
|
if (current_Node!=null)
|
|
{
|
|
information_Panel.transform.Find("Panel/ProgressBar").GetComponent<Slider>().value = current_Node.progress;
|
|
}
|
|
else
|
|
{
|
|
information_Panel.transform.Find("Panel/ProgressBar").GetComponent<Slider>().value = 0;
|
|
|
|
}
|
|
}
|
|
public void StopandStart()
|
|
{
|
|
//isProducing = !isProducing;
|
|
}
|
|
}
|