private void OnTriggerEnter2D(Collider2D otherCollider) { if (otherCollider.GetComponent <PlayerController>()) { collectorText.text = "Good job, you've collected a shard, now hurry and find the rest! I'll keep 'helping' you ofcourse!"; templates.GetComponent <RoomTemplates>().isCollected = true; gameObject.SetActive(false); } }
private void OnTriggerEnter2D(Collider2D otherCollider) { if (otherCollider.GetComponent <PlayerController>()) { collectorText.text = "Hahahahaha! I lied! You should've seen the look on your face! Hahaha! This is so much fun!"; collectorText.color = Color.red; templates.GetComponent <RoomTemplates>().isCollected = true; gameObject.SetActive(false); } }