UP-Viagg-io/Viagg-io/Assets/Scripts/OnActivateSpeechButton.cs

19 lines
366 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OnActivateSpeechButton : MonoBehaviour
{
[SerializeField]
GameObject notificationObj;
[SerializeField]
GameObject speechAlarmObj;
private void OnEnable()
{
speechAlarmObj?.SetActive(true);
notificationObj?.SetActive(true);
}
}