Ejemplo n.º 1
0
    void Update()
    {
        if (Time.timeScale == 0)
        {
            return;
        }

        if (Input.GetButton("Fire1"))
        {
            weaponsController.FirePrimaryWeapon();
        }
        if (Input.GetButton("Fire2"))
        {
            weaponsController.FireSecondaryWeapon();
        }
        if (Input.GetButton("Fire3"))
        {
            weaponsController.FireTertiaryWeapon();
        }
    }