Files
AppleHillsProduction/Assets/Scripts/UI/TestIndicator.cs
2025-10-02 07:41:27 +02: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);
}
}