示例#1
0
    //continue
    public void continueButton()
    {
        flgJanken = true;
        //clickGrowStartButton getStatus = GetComponent<clickGrowStartButton> ();
        //gameprefsからデータをロード
        stamina = LoadStamina();
        power  = LoadPower();
        weight = LoadWeight();
        money = LoadMoney();
        Debug.Log ("Weight:" + weight);
        Debug.Log ("Stamina:" + stamina);
        Debug.Log ("Power:" + power);
        Debug.Log ("Money:" + money);

        //敵のステータス取得
        kindRikishi rikishi = new kindRikishi ();
        cpuWeight = rikishi.Weight (getStage);
        cpuPower = rikishi.Power(getStage);
        cpuStamina = rikishi.Stamina (getStage);
        cpuMoney = rikishi.Money (getStage);
        Debug.Log ("cpuWeight:"+cpuWeight);
        Debug.Log ("cpuPower:"+cpuPower);
        Debug.Log ("cpuStamina:"+cpuStamina);
        Debug.Log ("cpuMoney:"+cpuMoney);

        //HP表示
        hpText.text = "自分のHP:"+stamina.ToString ();
        cpuHpText.text = "相手のHP:"+cpuStamina.ToString ();

        //制限時間をいれる
        totaltime = 10;

        endGameObj.SetActive(false);
        continueObj.SetActive(false);
    }
示例#2
0
    public void Start()
    {
        SoundManager.Instance.PlayBGM(1);
        flgJanken = true;
        //gameprefsからデータをロード
        stamina = LoadStamina();
        power  = LoadPower();
        weight = LoadWeight();
        money = LoadMoney();
        Debug.Log ("Weight:" + weight);
        Debug.Log ("Stamina:" + stamina);
        Debug.Log ("Power:" + power);
        Debug.Log ("Money:" + money);

        //ステージをロード
        getStage = LoadStageLevel ();

        //敵のステータス取得
        kindRikishi rikishi = new kindRikishi ();
        cpuWeight = rikishi.Weight (getStage);
        cpuPower = rikishi.Power(getStage);
        cpuStamina = rikishi.Stamina (getStage);
        cpuMoney = rikishi.Money (getStage);
        Debug.Log ("cpuWeight:"+cpuWeight);
        Debug.Log ("cpuPower:"+cpuPower);
        Debug.Log ("cpuStamina:"+cpuStamina);
        Debug.Log ("cpuMoney:"+cpuMoney);

        //HP表示
        hpText.text = "自分のHP:"+stamina.ToString ();
        cpuHpText.text = "相手のHP:"+cpuStamina.ToString ();

        //制限時間を入れる
        totaltime = 10;
    }