コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     gameObject.GetComponent <Text>().text = StaticGameInfo.getLastGameScore().ToString();
 }
コード例 #2
0
ファイル: PlayerController.cs プロジェクト: Bassadin/ReArm
 public override void onDeath()
 {
     StaticGameInfo.setLastGameScore(ScoreManager.Instance.getScore());
     SceneManager.LoadScene(3);
 }
コード例 #3
0
 public void LoadSceneAndClearLastScore(int level)
 {
     StaticGameInfo.setLastGameScore(0);
     LoadScene(level);
 }