Hi
I have that code:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class HUD : MonoBehaviour
{
public Sprite[] HeartSprites;
public Image HeartUI;
private Character character;
void Start()
{
character = GameObject.FindGameObjectsWithTag("Player").GetComponent<Player>();
}
}
and it sent me an error:
The type or namespace name `Character’ could not be found. Are you missing a using directive or an assembly reference?
My “Player” script was made in Javascript and called “Character”
What Can I do?
I’m making the health system from this tutorial: Unity 5 2D Platformer Tutorial - Part 13 - Player Health UI - YouTube
But All my scripts was made by me, and I didn’t make anything but Health from this tutorial