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();
}
}
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: https://www.youtube.com/watch?v=5KwkfGfaRNU
But All my scripts was made by me, and I didn't make anything but Health from this tutorial
↧