// Token: 0x060013D7 RID: 5079 RVA: 0x000614D4 File Offset: 0x0005F6D4 public RoachController.RoachPathEditorComponent AddPathEditorObject() { GameObject gameObject = new GameObject("Roach Path (Temporary)"); gameObject.hideFlags = HideFlags.DontSave; gameObject.transform.SetParent(base.transform, false); RoachController.RoachPathEditorComponent roachPathEditorComponent = gameObject.AddComponent <RoachController.RoachPathEditorComponent>(); roachPathEditorComponent.roachController = this; return(roachPathEditorComponent); }
// Token: 0x060013D6 RID: 5078 RVA: 0x00061450 File Offset: 0x0005F650 public void DebakeRoaches() { this.ClearRoachPathEditors(); for (int i = 0; i < this.roaches.Length; i++) { RoachController.Roach roach = this.roaches[i]; RoachController.RoachPathEditorComponent roachPathEditorComponent = this.AddPathEditorObject(); for (int j = 0; j < roach.keyFrames.Length; j++) { RoachController.KeyFrame keyFrame = roach.keyFrames[j]; RoachController.RoachNodeEditorComponent roachNodeEditorComponent = roachPathEditorComponent.AddNode(); roachNodeEditorComponent.transform.position = keyFrame.position; roachNodeEditorComponent.transform.rotation = keyFrame.rotation; } } }