First steps
This commit is contained in:
36
Assets/Scripts/UI/TestIndicator.cs
Normal file
36
Assets/Scripts/UI/TestIndicator.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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 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);
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/UI/TestIndicator.cs.meta
Normal file
2
Assets/Scripts/UI/TestIndicator.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a691a95f74c07245b64469dda594bfb
|
||||
Reference in New Issue
Block a user