Ejemplo n.º 1
0
    void Update()
    {
        if (Input.GetMouseButton(0))
        {
            if (testing)
            {
                character.Fire();
            }
            else
            {
                view.SendReliable("AttackInput", RpcTarget.Server);
            }
        }

        if (Input.GetMouseButton(1))
        {
            limbsCam.Aim();
        }
        if (Input.GetMouseButtonUp(1))
        {
            limbsCam.Reset();
        }
    }