using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class HeartScript : MonoBehaviour { Sprite[] HeartImages; private List Hearts = new List(); public GameObject HeartPrefab; public int AmountOfHearts = 1; public int HeartStrength = 14; private void Start() { HeartImages = Resources.LoadAll("Materials/Grapic/Player Heart.png"); Hearts.Add(GameObject.Instantiate(HeartPrefab, new Vector3(0, 450, 0), this.transform.rotation, this.transform)); } public void FixedUpdate() { } }