|
@@ -10,12 +10,14 @@ public class GameUI : MonoBehaviour
|
|
|
public Animator player_is_hurt;
|
|
public Animator player_is_hurt;
|
|
|
public Image half_hp;
|
|
public Image half_hp;
|
|
|
public AnimationClip player_is_hurt_animaton;
|
|
public AnimationClip player_is_hurt_animaton;
|
|
|
|
|
+ public Transform CD;
|
|
|
|
|
|
|
|
private float hurtClipTime;
|
|
private float hurtClipTime;
|
|
|
private float hurtTime;
|
|
private float hurtTime;
|
|
|
private bool isHurt;
|
|
private bool isHurt;
|
|
|
private float hpRate;
|
|
private float hpRate;
|
|
|
private float lastDyingTime;
|
|
private float lastDyingTime;
|
|
|
|
|
+
|
|
|
private void Awake()
|
|
private void Awake()
|
|
|
{
|
|
{
|
|
|
if (!instance)
|
|
if (!instance)
|