Files
AppleHillsProduction/Assets/Scripts/UI/TestIndicator.cs
tschesky e713a580a9 puzzlestep_indicators (#14)
Co-authored-by: Michal Pikulski <michal.a.pikulski@gmail.com>
Reviewed-on: #14
2025-10-02 05:42:17 +00:00

47 lines
837 B
C#

using UnityEngine;
public class TestIndicator : MonoBehaviour, PuzzleS.IPuzzlePrompt
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void OnShow()
{
gameObject.SetActive(true);
}
public void OnHide()
{
gameObject.SetActive(false);
}
public void ShowFar()
{
gameObject.SetActive(true);
}
public void ShowClose()
{
gameObject.transform.localScale = new Vector3(-0.2f, 0.2f, 0.2f);
}
public void HideClose()
{
gameObject.transform.localScale = new Vector3(-0.1f, 0.1f, 0.1f);
}
public void HideFar()
{
gameObject.SetActive(false);
}
}