private void FixedUpdate()
{
coodTime += Time.deltaTime;
if (Input.GetKeyDown(KeyCode.Z) && coodTime > setcoodtime)
{
au.PlayOneShot(russ, 1f);
Russing();
coodTime = 0;
}
}
// Update is called once per frame
void Update()
{
//UI显示
if (coodTime > setcoodtime)
{
coodUI.fillAmount = 0;
}else
{
coodUI.fillAmount = 1-coodTime/setcoodtime ;
}
}
