void Start()
    {
        Time.timeScale = 1f;
        game_over_menu.SetActive(false);
        hp    = PlayerPrefs.GetInt("Player_hp");
        image = GetComponent <Image>();
        dmg   = hp;

        player_text_hp = GameObject.Find("Health Value").GetComponent <PlayerHealth_text>();
    }
示例#2
0
 void Start()
 {
     health_value = GameObject.Find("Health Value").GetComponent <PlayerHealth_text>();
     health_bar   = GameObject.Find("Image_bar").GetComponent <PlayerHealth>();
 }