private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag.Contains("Player")) { TimerScript.ChangeTime((float)value); Destroy(this.gameObject); } }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.tag.Contains("Player")) { TimerScript.ChangeTime((float)value); Destroy(this.gameObject); } }