예제 #1
0
 void Awake()
 {
     if (mInstance != null)
     {
         Destroy(gameObject);
         return;
     }
     Instance = this;
     DontDestroyOnLoad(gameObject);
 }
예제 #2
0
 private void Awake()
 {
     scorenum = ScoreNum.Instance;
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     scorenum       = ScoreNum.Instance;
     ScoreText.text = scorenum.getScore();
     HpParamete(scorenum.getHp());
 }