error CS0246 even if i'm using UnityEngine.UI

Hello,
I’m making some project and have error:

even if i actually use " using UnityEngine.UI;".

You can see my code below. Am i doing something wrong? Or it’s just some bug?
What can i do with this?

using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;



public class Pilka2 : MonoBehaviour {

    public float ballVelocity = 100;
    public text wynikt;
    Rigidbody rb;
    bool isPlay;
    int randInt;
    int licznik;


    void Awake()
    {
        rb = GetComponent<Rigidbody>();
        randInt = Random.Range(1,3);
        licznik = 0;
        wynikt.text = "Wynik: " + licznik.ToString ();
    }

    void Update()
    {
        if (Input.GetMouseButton(0) && isPlay == false)
        {
            transform.parent = null;
            isPlay = true;
            rb.isKinematic = false;
            if (randInt == 1)
            {
                rb.AddForce(new Vector3(ballVelocity, ballVelocity, 0));
            }
            if (randInt == 2)
            {
                rb.AddForce(new Vector3(-ballVelocity, -ballVelocity, 0));
            }
        }
    }

    void OnCollisionEnter (Collision col)
    {
        if(col.gameObject.name == "wrogprzyklad")
        {
            licznik = licznik + 1;
            wynikt.text = "Wynik: " + licznik.ToString ();
        }
    }
}

Is the error message not clear enough that the type you’re using on line 11, character 9 could not be found. Hint: If you click on a type in the code view above it will take you to the API reference.

It should become obvious then that lowercase “text” does not exist. I can only presume you mean “Text”?

Also note that UI is not 2D so wrong forum. I believe you wanted: UI Forum

Yeah, my mistake, should be Text, not text - thank you for your help :slight_smile:

And of course, i will be more careful in future with choosing good forum for my topics

Happy Easter!