private void OnTriggerEnter(Collider other) { if (other.tag.Equals(Tags.Enemy)) { TakeDamage(); } if (other.tag.Equals(Tags.GreenJewel)) { levelTransition.FirstLevelIsPassed(); PlayerCollectedGreenJewel(other); } if (other.tag.Equals(Tags.PinkJewel)) { levelTransition.SecondLevelIsPassed(); PlayerCollectedPinkJewel(other); } if (other.tag.Equals(Tags.YellowJewel)) { levelTransition.ThirdLevelIsPassed(); PlayerCollectedYellowJewel(other); } }