public void ServerPerformInteraction(PositionalHandApply interaction) { var pad = interaction.TargetObject.GetComponent <QuantumPad>(); if (pad == null) { return; } if (pad.disallowLinkChange) { Chat.AddExamineMsgFromServer(interaction.Performer, "The link has been hard locked, you cannot change it."); return; } if (pad == padInBuffer) { Chat.AddExamineMsgFromServer(interaction.Performer, "You cannot link the same pad together, clear the buffer if you wish to add to it."); return; } if (padInBuffer == null) { Chat.AddExamineMsgFromServer(interaction.Performer, "You set the buffer to this quantum pad."); padInBuffer = pad; } else { Chat.AddExamineMsgFromServer(interaction.Performer, "You set this quantum pad to connect to the pad in buffer."); pad.connectedPad = padInBuffer; } }
public void ServerPerformInteraction(HandActivate interaction) { Chat.AddExamineMsgFromServer(interaction.Performer, "You clear the quantum key buffer."); padInBuffer = null; }