private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Waypoint") { if (gameObject.tag == "Boss") { boss.ChangetIndex(); } else { waypointSystem.IncrementIndex(); } } }
private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Waypoint") { if (gameObject.tag == "Boss") { boss.ChangetIndex(); } else { waypointSystem.IncrementIndex(); } } }