First commit for private source control. Older commits available on Github.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user