private void Update() { if (Input.GetKeyDown(KeyCode.F)) { CanvasSettings.ToggleInventoryMenu(ConnectedCharacters.MyPlayer, "INVENTORY"); } if (Input.GetKeyDown(KeyCode.Escape)) { CanvasSettings.TogglePauseMenu(); } if (Input.GetButtonDown("Fire1") && !_characterAnimator.Attacking) { NetworkSend.Reliable("ATK|"); _characterAnimator.Attack(); } if (!_characterAnimator.Attacking) { CanHit = true; } }
public override void StartMerchant() { CanvasSettings.ToggleInventoryMenu(this, "MERCHANT"); }
public override void StartLoot() { CanvasSettings.ToggleInventoryMenu(this, "LOOT"); }