30 lines
689 B
C#
30 lines
689 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace BriarQueen.Game.Puzzles.ChapterOne.Fountain
|
|
{
|
|
public class FountainResetButton : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private Button _resetButton;
|
|
|
|
[SerializeField]
|
|
private FountainGemBasePuzzle _fountainGemBasePuzzle;
|
|
|
|
protected void Start()
|
|
{
|
|
_resetButton.onClick.AddListener(OnResetClicked);
|
|
}
|
|
|
|
protected void OnDestroy()
|
|
{
|
|
_resetButton.onClick.RemoveListener(OnResetClicked);
|
|
}
|
|
|
|
private void OnResetClicked()
|
|
{
|
|
_fountainGemBasePuzzle.OnResetButtonPressed();
|
|
}
|
|
}
|
|
} |