22 lines
553 B
C#
22 lines
553 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class FractionTools : MonoBehaviour
|
|
{
|
|
public bool isRight = false;
|
|
private void OnMouseDown()
|
|
{
|
|
if (EventSystem.current.IsPointerOverGameObject())
|
|
{ return; }
|
|
if (FractionManager.Instance)
|
|
{
|
|
if (!isRight)
|
|
FractionManager.Instance.errorTools.Add(gameObject.name);
|
|
else
|
|
FractionManager.Instance.rightTools.Add(gameObject.name);
|
|
//FractionManager.Instance.sum += 1;
|
|
}
|
|
}
|
|
|
|
}
|