示例#1
0
    void Update()
    {
        if (!isLocalPlayer)
        {
            return;
        }

        if (health <= 0)
        {
            scorePing();
            //Destroy (gameObject);
            Respawn();
        }

        if (Input.GetMouseButton(0))
        {
            leGun.AttemptFire();
        }

        if (Input.GetMouseButton(1))
        {
            leTool.AttemptFire();
        }

        if (Input.GetMouseButton(2))
        {
            flareGun.AttemptFire();
        }
    }