/// <inheritdoc/> public override bool StartLinking(GUILinkMode mode, LinkActorType actor) { // Don't allow EVA linking mode. if (mode != GUILinkMode.Interactive && mode != GUILinkMode.API) { return(false); } return(base.StartLinking(mode, actor)); }
/// <inheritdoc/> public virtual bool StartLinking(GUILinkMode mode, LinkActorType actor) { if (!linkStateMachine.CheckCanSwitchTo(LinkState.Linking)) { if (actor == LinkActorType.Player) { ShowStatusMessage(SourceIsNotAvailableForLinkMsg, isError: true); } HostedDebugLog.Warning(this, "Cannot start linking mode in state: {0}", linkState); return(false); } guiLinkMode = mode; linkActor = actor; linkState = LinkState.Linking; return(true); }
public abstract bool StartLinking(GUILinkMode mode, LinkActorType actor);