示例#1
0
 // Start is called before the first frame update
 void Awake()
 {
     StarManager.GetInstance().AddStar(this, starNumber);
     UnlockManager.GetInstance().AddStar(this);
 }
示例#2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     StarManager.GetInstance().StarCaught(starNumber);
     SetCaptured();
     gameObject.SetActive(false);
 }