Skip to content

Conversation

@arnab2k24
Copy link

No description provided.

@arnab2k24
Copy link
Author

using UnityEngine;
using UnityEngine.UI;

public class ScoreManager : MonoBehaviour
{
public Text scoreText;
public Transform player;

void Update()
{
    scoreText.text = "Score: " + ((int)player.position.z).ToString();
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants