2024-07-03 12:03:50 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
2024-07-04 17:22:55 +00:00
|
|
|
using TMPro;
|
2024-07-03 12:03:50 +00:00
|
|
|
|
|
|
|
public class Generator : Interactable
|
|
|
|
{
|
2024-07-04 17:22:55 +00:00
|
|
|
public AudioClip Source;
|
2024-07-03 12:03:50 +00:00
|
|
|
public override void Interact()
|
|
|
|
{
|
|
|
|
GameManager.instance.gotGenerator = true;
|
2024-07-04 17:22:55 +00:00
|
|
|
GameObject.Find("GeneratorObjective").GetComponent<TextMeshProUGUI>().color = Color.green;
|
|
|
|
AudioSource.PlayClipAtPoint(Source,transform.position,1f);
|
2024-07-03 12:03:50 +00:00
|
|
|
base.Interact();
|
|
|
|
}
|
|
|
|
}
|