예제 #1
0
    private void FishReelEnded(bool success, CollectibleItem.ItemID id, Fish fish)
    {
        if (m_currState != FishingState.Reeling)
        {
            Debug.LogError("Received fish reel ended event while in state (" + m_currState + ")");
        }

        if (success)
        {
            m_currFishingSign.FishingArea.RemoveFish(fish);
            m_eventManager.TriggerItemEvent(id, 1);
            m_caughFish.Add(id);
            Debug.Log("caught " + m_caughFish.Count + " different fishes");
            m_variableStorage.SetValue("$fishSpeciesCaught", m_caughFish.Count);
            Debug.Log(m_variableStorage);
        }

        m_fishingReticle.SetAnimTriggReelEnd();
        m_fishingRod.SetAnimTriggReelEnd();
        m_uiManager.ToggleInstructions("Aiming");
        ChangeState(FishingState.Aiming);
    }