// Token: 0x06003BD7 RID: 15319 RVA: 0x000D5A60 File Offset: 0x000D3C60 public void Awake() { global::HardpointMaster component = base.idMain.GetComponent <global::HardpointMaster>(); if (component) { this.SetMaster(component); } base.Awake(); }
// Token: 0x06003BDE RID: 15326 RVA: 0x000D5B3C File Offset: 0x000D3D3C public static global::Hardpoint GetHardpointFromRay(Ray ray, global::Hardpoint.hardpoint_type type) { RaycastHit raycastHit; bool flag; MeshBatchInstance meshBatchInstance; if (Facepunch.MeshBatch.MeshBatchPhysics.Raycast(ray, ref raycastHit, 10f, ref flag, ref meshBatchInstance)) { IDMain idmain = (!flag) ? IDBase.GetMain(raycastHit.collider) : meshBatchInstance.idMain; if (idmain) { global::HardpointMaster component = idmain.GetComponent <global::HardpointMaster>(); if (component) { return(component.GetHardpointNear(raycastHit.point, type)); } } } return(null); }
// Token: 0x06003BD9 RID: 15321 RVA: 0x000D5A9C File Offset: 0x000D3C9C public void SetMaster(global::HardpointMaster master) { this._master = master; master.AddHardpoint(this); }