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