private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Player") { theLM.AddLife(); Destroy(gameObject); } }
private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Player") { theLM.AddLife(); Destroy(gameObject); ScoreManager.instance.AddPoint(); } }
public void AddBonusLife() { _livesManager.AddLife(); AudioSource.PlayClipAtPoint(_bonusSFX, Camera.main.transform.position, 0.5f); }