示例#1
0
    public void Be_Attacked()
    {
        if (Next_Attack < Time.time)
        {
            Current_Health--;
            Next_Attack = Time.time + Attack_Delay;
            if (Current_Health > 0)
            {
                Glucose_An.Launch_Stunt_Animation();
                Glucose_Mo.Stunt();
                Audio_Prefab_Sp.Play_A_Sound(1);
            }
            else
            {
                print("Health Dead");
                Glucose_St.Change_Glucose_Controls(Glucose_States.Player_Control.Dead);
            }
        }

        HUD.Update_Glucose_Health_Bar(Current_Health, Max_Health);
    }