Exemplo n.º 1
0
    // Late or its too early for FishSpawner
    void LateUpdate()
    {
        if (Input.GetButtonDown("Jump") && m_rodOut == false)
        {
            m_speechbubbleUpdater.ReflectText(". . .");
            m_fishSpawn          = Random.Range(m_minFishSpawn, m_maxFishSpawnTime);
            m_currentFishingTime = m_newFishingTime;
            m_fishermanUpdater.ReflectImage(m_normalFisherman, new Vector2(100, 100));
            m_fishUpdater.ResetImage();
            m_rodOut = true;
        }

        if (m_rodOut == true)
        {
            Fishing();
        }
    }