Пример #1
0
    // Update is called once per frame
    void Update()
    {
        float ControllerTrigger = Input.GetAxis("PullUpWeapon");

        if (ControllerTrigger == 0.0f)
        {
            playerManagerScript.IsNotGolfing();
            VanillaOrBirdsEyeState();
        }
        else if (ControllerTrigger < 0.0f)
        {
            playerManagerScript.IsNotGolfing();
            WeaponState();
        }
        else if (ControllerTrigger > 0.0f)
        {
            playerManagerScript.IsGolfing();
            GolfingInsideOrOutsideState();
        }

        if (Input.GetKeyDown("joystick button 6"))
        {
            BirdsEyeState();
        }
    }