Exemple #1
0
    // Use this for initialization
    void Start()
    {
        //取得
        player_Manager       = PlayerManager.Instance;
        beetle_Power_Manager = BeetlePowerManager.Instance;
        for (int i = 0; i < 9; i++)
        {
            life_Images[i] = life_Images_Parent.transform.GetChild(i).gameObject;
        }
        beetle_Power_Slider_Image = beetle_Power_Slider.transform.Find("Fill Area").GetComponentInChildren <Image>();

        GameObject player = GameObject.FindWithTag("PlayerTag");

        if (player != null)
        {
            player_Controller = player.GetComponent <PlayerController>();
        }


        //UI初期値
        if (!Is_Appear())
        {
            Switch_Appearance(false);
        }
        Change_Power_UI();          //パワー
        Change_Score_UI();          //スコア
        Change_Stock_UI();          //ストック
        Change_Life_UI();           //ライフ
        Change_Beetle_Power_UI();   //カブトムシパワー
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        //取得
        player_Manager       = PlayerManager.Instance;
        beetle_Power_Manager = BeetlePowerManager.Instance;
        for (int i = 0; i < 9; i++)
        {
            life_Images[i] = life_Images_Parent.transform.GetChild(i).gameObject;
        }

        //UI初期値
        Change_Player_UI(score_Text, 9, player_Manager.Get_Score(), score_Text_Value); //スコア
        Change_Player_UI(power_Text, 3, player_Manager.Get_Power(), power_Text_Value); //パワー
        Change_Stock_UI();                                                             //ストック
        Change_Life_UI();                                                              //ライフ
        Change_Beetle_Power_UI();                                                      //カブトムシパワー
    }