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