// Start is called before the first frame update void Start() { Dqwd = GameObject.Find("Player").GetComponent <dqwd>(); timebar2.value = 1 - (float)(Dqwd.curTime2) / (float)(Dqwd.coolTime2); }
// Start is called before the first frame update void Start() { dqwd = GameObject.Find("Player").GetComponent <dqwd>(); timebar4.value = dqwd.dmgcool * 2 / 3; }