public override void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action) { if (isLock) { actionText = MessageText.Open(); keyCode = KeyCode.Space; if (GameTrigger.isPlayerHasDriver) { action = UnLock; } else { action = ShowLockedMessage; } return; } if (isDoorOpen) { actionText = MessageText.Close(); } else { actionText = MessageText.Open(); } action = OpenOrClose; keyCode = KeyCode.Space; return; }
public virtual void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action) { if (isLock) { actionText = MessageText.Open(); keyCode = KeyCode.Space; action = PushOpenPadLockScene; return; } if (isDoorOpen) { actionText = MessageText.Close(); } else { actionText = MessageText.Open(); } action = OpenOrClose; keyCode = KeyCode.Space; }
public override void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action) { actionText = isDoorOpen ? MessageText.Close() : MessageText.Open(); keyCode = KeyCode.Space; action = OpenOrClose; }