protected override Transform InitLocalTransform() { SectorDetector.Init(Locator.GetProbe().GetSectorDetector()); var body = Locator.GetProbe().transform; Player.ProbeBody = body.gameObject; if (!Player.Body) { DebugLog.ToConsole($"Warning - Player.Body is null!", MessageType.Warning); return(null); } var listener = Player.Body.AddComponent <ProbeListener>(); listener.Init(Locator.GetProbe()); var launcherListener = Player.Body.AddComponent <ProbeLauncherListener>(); launcherListener.Init(Player.LocalProbeLauncher); return(body); }
protected override OWRigidbody InitAttachedRigidbody() { SectorDetector.Init(Locator.GetShipDetector().GetComponent <SectorDetector>()); return(Locator.GetShipBody()); }