Unity gave me the error message “error CS0029: cannot implicitly convert type ‘float’ to ‘string’”
My code is
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DisplayScore : MonoBehaviour
{
public Text test;
public bool flag = true;
// Use this for initialization
void Update()
{
test.text = GameObject.Find("Button Score").GetComponent<ButtonClick>().playerScore;
}
}
so how would I convert the float to a string? ty!