Cookie Clicker in 60 sec | Unity Tutorial
60 Seconds Code
Views: 2500
Like: 35
I hope I was able to help you with this video, if that’s the case, I would be very happy for a rating and a comment, thank you very much!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CookieClicker : MonoBehaviour
{
public Text cookieText;
public int cookies;
public void Start()
{
cookies = 0;
}
public void Clicker()
{
cookies++;
}
public void Update()
{
cookieText.text = “You have ” + cookies + ” Cookies”;
}
}
05.01.2024