コード例 #1
0
    void Start()
    {
        instance = this;

        best       = PlayerPrefs.GetInt("bestScore", 0);
        _best.text = best.ToString();
        _mult.text = "X" + PlayerPrefs.GetInt("multiplier", 1).ToString();
    }
コード例 #2
0
ファイル: GlobalData.cs プロジェクト: andrewvmail/momo-terraw
 /// <summary>
 /// Script entry point
 /// </summary>
 private void Start()
 {
     m_uID = GameObject.FindObjectOfType<UIDraw>();
     m_eDB = GameObject.FindObjectOfType<EntityDatabase>();
     m_bossActive = false;
     m_score = 0;
     m_tickTime = true;
     StartCoroutine(LevelTimer());
 }
コード例 #3
0
ファイル: UIDraw.cs プロジェクト: TimonYoon/Dev
 //public AudioSource audioSource;
 private void Awake()
 {
     Instance = this;
 }