public override void OnCardTouched(CardView card) { string warningString = "Are you sure you want to flip this card on " + LogEntry.ZoneLogEntryPart(this) + "?"; string voteString = "Allow " + LogEntry.PlayerLogEntryPart(Player.LocalPlayer) + " to flip a card on " + LogEntry.ZoneLogEntryPart(this) + "?"; ViewPermission.Check(Player.LocalPlayer, ownerNetId, () => { card.FlipCard(); }, null, warningString, voteString); }
// ================================================================ // Update // ================================================================ private void Update() { if (Input.GetKeyDown(KeyCode.Space)) { currCardView.FlipCard(); } if (Input.GetKeyDown(KeyCode.Z)) { OnClickUndo(); } if (Input.GetKeyDown(KeyCode.LeftArrow)) { OnClickNo(); } if (Input.GetKeyDown(KeyCode.RightArrow)) { OnClickYes(); } }