public virtual void OnTriggerEnter(Collider other) { switch (other.gameObject.tag) { case Const.tagZEBRA: this.checkTrafficLight = true; this.trafficLightCollider = other; this.StartZebraPosition(); break; case Const.tagDESTINATION: if (other.gameObject.GetInstanceID() == currentDestination.destination.GetInstanceID()) { float nextDestinaitonTime = nextDestination.time; this.SetDestination(); simulationManager.AddToWakeUpList(this.go.gameObject, nextDestinaitonTime); } break; } }