コード例 #1
0
 // Start is called before the first frame update
 private void OnEnable()
 {
     Name1.text  = HighScoreInterface.ReturnFirstName();
     Name2.text  = HighScoreInterface.ReturnSecondName();
     Name3.text  = HighScoreInterface.ReturnThirdName();
     Score1.text = HighScoreInterface.ReturnFirstScore().ToString();
     Score2.text = HighScoreInterface.ReturnSecondScore().ToString();
     Score3.text = HighScoreInterface.ReturnThirdScore().ToString();
 }
コード例 #2
0
        public IEnumerator ReturnFirstNameTest()
        {
            string   name       = HighScoreInterface.ReturnFirstName();
            string   jsonString = PlayerPrefs.GetString("Database");
            DataBase db         = JsonUtility.FromJson <DataBase>(jsonString);
            string   n          = db.PlayerList[0].Name;

            yield return(1);

            Assert.AreEqual(name, n);
        }