Пример #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();
        }
    }
    public void Update()
    {
        if (!isPCMode)
        {
            return;
        }

        if (Input.GetMouseButtonDown(0))
        {
            gun.AttemptFire();
        }
        if (Input.GetMouseButtonDown(1))
        {
            scanner.AttemptFire();
        }
    }
Пример #3
0
 private void Update()
 {
     gun.AttemptFire();
 }