Pracownia-Programowania-Pro.../Assets/Scripts/Player scripts/PlayerScore.cs

17 lines
292 B
C#
Raw Permalink Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerScore : MonoBehaviour
{
public Text scoreText;
public int killedEnemy=0;
void Update()
{
scoreText.text = killedEnemy.ToString();
}
}