Example #1
0
    public void UpdateVive()
    {
        bool triggerButtonDown = false;

        triggerButtonDown = controller.GetPress(triggerButton);
        if (triggerButtonDown)
        {
            godzillaGun.CmdFireBullet();
        }
    }
    // Update is called once per frame
    void Update()
    {
        if (!isLocalPlayer)
        {
            return;
        }



        if (Input.GetKey(KeyCode.Space))
        {
            gun.CmdFireBullet();
        }
    }