Пример #1
0
    void Update()
    {
        if (KickInfo.IsKicked && BallRB.velocity.magnitude <= 1)
        {
            CheckKick();
        }

        if (KickInfo.GetWind() != 0)
        {
            if (KickInfo.GetWind() > 0)
            {
                UIText[2].text = "Wind: " + System.Math.Round(KickInfo.GetWind() * 3.6f, 2) + " km/h"; UIText[4].text = "->";
            }
            else
            {
                UIText[2].text = "Wind: " + System.Math.Round(KickInfo.GetWind() * 3.6f * -1, 2) + " km/h"; UIText[4].text = "<-";
            }
        }
        else
        {
            UIText[2].text = "No Wind."; UIText[4].text = "-";
        }
    }