예제 #1
0
        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;
            }
        }
예제 #2
0
 public override void StartMerchant()
 {
     CanvasSettings.ToggleInventoryMenu(this, "MERCHANT");
 }
예제 #3
0
 public override void StartLoot()
 {
     CanvasSettings.ToggleInventoryMenu(this, "LOOT");
 }