using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Trigger_Station : MonoBehaviour
{
///
/// 无感充电
///
public Transform NoFeelingCD;
///
/// 无感充电特效
///
private Transform NoFeelingEffect;
///
/// 正常充电特效
///
//public Transform NorMalEffect;
///解决 无感充电 重置问题
bool isFFirstTime = true;
///
/// 解决无感充电UI显示问题
///
public static bool istrue = true;
public GameObject obj1;
///
/// 充完电速度问题
///
bool istrigger = true;
public GameObject SpeedText1;
public GameObject SpeedText2;
public GameObject SpeedText3;
public GameObject SpeedText4;
private float Max_Battery = 100f;//最大电量
private float Min_Battery = 0f;//最大电量
private float Current_Battery = 20f;//最大电量
private float consumption = 0.1f;//消耗电量速度
public Text txt_battery;
bool bool1 = true;
private void Update()
{
if (Current_Battery < 99.3F)
Current_Battery += consumption * Time.deltaTime;
txt_battery.text = Current_Battery.ToString("f2") + "%";
}
private void Start()
{
//obj1.SetActive(false);
NoFeelingCD.GetChild(1).GetComponent