Asset updates

-Added popup prefab
-Added abstract script for interactables
This commit is contained in:
Evan Nydahl
2022-02-21 13:26:17 -06:00
parent f808e1e63a
commit 1e9c91b332
17 changed files with 696 additions and 29 deletions

View File

@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class AbstractInteractable : MonoBehaviour
{
//image used for interactable (change this to specific image type when needed)
[SerializeField] protected GameObject interactableImage;
//List is fine, but when destroying objects list size will change if you want to delete the element from array
//(works fien without removing it, but may want to use dynamically sized array later)
[SerializeField] protected List<GameObject> interactableObjects = new List<GameObject>();
//stubbed method that will preform interact based on
public abstract void OnInteract();
}