You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RatAttack2D/Assets/HeartScript.cs

31 lines
652 B

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