Files
flufflparty-/FlufflParty/Assets/Scripts/Actions/Arrow.cs
T
2023-01-24 19:38:27 +01:00

36 lines
548 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Arrow : MonoBehaviour
{
private bool clicked = false;
private void Start()
{
Deactivate();
}
public bool IsClicked()
{
return clicked;
}
public void Activate()
{
gameObject.SetActive(true);
}
public void Deactivate()
{
clicked = false;
gameObject.SetActive(false);
}
private void OnMouseDown()
{
clicked = true;
}
}