// Update is called once per frame void Update() { HitPoint1 = CryptoPlayerPrefs.GetInt("blueOFHitPoint", 300); Attack1 = CryptoPlayerPrefs.GetInt("blueOFAttack", 300); Interval1 = CryptoPlayerPrefs.GetInt("blueOFInterval", 300); HitPoint2 = Mathf.FloorToInt(HitPoint1 * 1.1f); Attack2 = Mathf.FloorToInt(Attack1 * 1.05f); Interval2 = Mathf.FloorToInt(Interval1 * 0.95f); beforeHitPoint.text = string.Format("{0:#,0}", HitPoint1); beforeAttack.text = string.Format("{0:#,0}", Attack1); beforeInterval.text = string.Format("{0:#,0}", Interval1); afterHitPoint.text = string.Format("{0:#,0}", HitPoint2); afterAttack.text = string.Format("{0:#,0}", Attack2); afterInterval.text = string.Format("{0:#,0}", Interval2); Point1 = CryptoPlayerPrefs.GetInt("blueOFpoint1", 50); Point2 = CryptoPlayerPrefs.GetInt("blueOFpoint2", 50); Point3 = CryptoPlayerPrefs.GetInt("blueOFpoint3", 50); point1.text = string.Format("{0:#,0}", Point1); point2.text = string.Format("{0:#,0}", Point2); point3.text = string.Format("{0:#,0}", Point3); possession = Possession.getPossession(); if (possession >= Point1) { HitPointButton.SetActive(true); } else { HitPointButton.SetActive(false); } if (possession >= Point2) { AttackButton.SetActive(true); } else { AttackButton.SetActive(false); } if (possession >= Point3) { IntervalButton.SetActive(true); } else { IntervalButton.SetActive(false); } }
// Update is called once per frame void Update() { possession = Possession.getPossession(); if (possession >= Point) { HPButton.SetActive(true); ATKButton.SetActive(true); ITVButton.SetActive(true); } else { HPButton.SetActive(false); ATKButton.SetActive(false); ITVButton.SetActive(false); } }
// Start is called before the first frame update void Start() { possession = Possession.getPossession(); }