Im having some problems with c# please help
Line 26:
The name `playerTransform' does not exist in the current context
Line 28:
`UnityEngine.Vector2' does not contain a definition for `Find'
Line 29:
Cannot implicitly convert type `string' to `UnityEngine.UI.Text'
Line 30:
The name `HiScoreCount' does not exist in the current context
Line: 32:
The name `HiScoreCount' does not exist in the current context
Line 33:
The name `HiScoreCount' does not exist in the current context
Thanks <3
Line 26:
The name `playerTransform' does not exist in the current context
Line 28:
`UnityEngine.Vector2' does not contain a definition for `Find'
Line 29:
Cannot implicitly convert type `string' to `UnityEngine.UI.Text'
Line 30:
The name `HiScoreCount' does not exist in the current context
Line: 32:
The name `HiScoreCount' does not exist in the current context
Line 33:
The name `HiScoreCount' does not exist in the current context
Code:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour {
public Text Hight;
public Text HiScore;
public Text Player;
public float HightCount;
void Start ()
{
}
// Update is called once per frame
void Update ()
{
Vector2 playerPos = playerTransform.position;
HightCount = GameObject.Find("Player").transform.position;
Hight = "" + HightCount;
HiScore.text = "HiScore: " + HiScoreCount;
if (HightCount > HiScoreCount) {
HiScoreCount = HightCount;
}
}
}
Thanks <3