示例#1
0
 /// <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));
 }
示例#2
0
 /// <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);
 }
示例#3
0
 public abstract bool StartLinking(GUILinkMode mode, LinkActorType actor);