Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

NameSpace player health

$
0
0
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

Viewing all articles
Browse latest Browse all 398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>