public void Init(SurveyorProbe localProbe) { _attachedProbe = localProbe; _attachedProbe.OnLaunchProbe += OnLaunchProbe; _attachedProbe.OnAnchorProbe += OnAnchorProbe; _attachedProbe.OnUnanchorProbe += OnUnanchorProbe; _attachedProbe.OnRetrieveProbe += OnRetrieveProbe; _attachedProbe.OnProbeDestroyed += OnProbeDestroyed; _attachedProbe.OnStartRetrieveProbe += OnStartRetrieveProbe; }
private void OnLaunchProbe(SurveyorProbe probe) => this.SendMessage(new LaunchProbeMessage(true));
private void HandleRetrieve(SurveyorProbe probe) => SendEvent(CreateMessage(false));
private static void OnLaunchProbe(SurveyorProbe probe) => new PlayerLaunchProbeMessage().Send();
private void HandleLaunch(SurveyorProbe probe) => SendEvent(CreateMessage(true));