Beispiel #1
0
    void Update()
    {
        if (lure != null)
        {
            if (GameController.Instance.currentMode != GameMode.Reeling && GameController.Instance.currentMode != GameMode.ReelingOnLand)
            {
                return;
            }
            if (GameController.Instance.GetisNegakariOrFoockingState() || kakuritsu <= 0.0f)
            {
                return;
            }
            if (Player.Instance.distanceToLure - dist < -0.2f)
            {
                dist = Player.Instance.distanceToLure;
                if (PSGameUtils.Chusen(kakuritsu))
                {
                    lure = null;
                    GameController.Instance.OnNegakari();

                    return;
                }
            }
        }
    }
Beispiel #2
0
    public void OnFoocked(float power)
    {
        if (power > 10.0f)
        {
            power = 10.0f;
        }

        if (PSGameUtils.Chusen(0.05f))
        {
            FoockOff();
        }
    }