protected override void OnCompletedStateTask() { DoorPoint currentPoint = this.Agent.CurrentPoint as DoorPoint; if (currentPoint.OpenType == DoorPoint.OpenTypeState.Right || currentPoint.OpenType == DoorPoint.OpenTypeState.Right90) { currentPoint.SetOpenState(DoorPoint.OpenPattern.OpenRight, true); } else { currentPoint.SetOpenState(DoorPoint.OpenPattern.OpenLeft, true); } }
protected override void OnCompletedStateTask() { DoorPoint currentPoint = this.Agent.CurrentPoint as DoorPoint; if (Object.op_Equality((Object)currentPoint, (Object)null)) { return; } if (currentPoint.OpenType == DoorPoint.OpenTypeState.Right || currentPoint.OpenType == DoorPoint.OpenTypeState.Right90) { currentPoint.SetOpenState(DoorPoint.OpenPattern.OpenRight, true); } else { currentPoint.SetOpenState(DoorPoint.OpenPattern.OpenLeft, true); } }