void Awake() { if (instance == null) { instance = this; } }
private void OnTriggerEnter2D(Collider2D other) { if (other.gameObject.tag == "Explosion") { gameObject.SetActive(false); GameManager.Points(1, points); MultiplierSpawner.SpawnMultiplier(transform.position); } }
void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } }