// Token: 0x0600137B RID: 4987 RVA: 0x0001C27C File Offset: 0x0001B27C public NavigateToGPSUpdater(InstancedEvent @event, EntrantInfo entrant, uint port) : base(@event, entrant, port) { this.currentTrigger = 0; this.useGPS = base.Event.EventDef.GPSArrow(); if (this.useGPS) { NavigateTo.NavigatePlayerTo(base.InstancedEvent.Route[this.currentTrigger].Position, Vector3.kZero, 0f, true, false, true); } }
// Token: 0x0600137E RID: 4990 RVA: 0x0001C304 File Offset: 0x0001B304 protected override void OnMessage(OnTriggerEnter message) { if (this.useGPS && base.Entrant.PersonaId == message.PersonaId) { for (int i = 0; i < base.InstancedEvent.Route.Count; i++) { if (message.TriggerKey == base.InstancedEvent.Route[i].Key) { if (i + 1 < base.InstancedEvent.Route.Count && this.currentTrigger != i + 1) { this.currentTrigger = i + 1; NavigateTo.NavigatePlayerTo(base.InstancedEvent.Route[this.currentTrigger].Position, Vector3.kZero, 0f, true, false, true); } else if (i + 1 >= base.InstancedEvent.Route.Count) { this.currentTrigger = 0; NavigateTo.NavigatePlayerTo(base.InstancedEvent.Route[this.currentTrigger].Position, Vector3.kZero, 0f, true, false, true); } } } } }