void Update()
{
if(flag==true)
{
Debug.Log("tween = true");
transform.GetComponent<Highlighter>().tween = true;
}
else transform.GetComponent<Highlighter>().tween = false;
}
public void OnMouseDown()
{
flag = true;
Debug.Log("MouseDown");
}
public void OnMouseExit()
{
flag = false;
}
版权声明:本文为Theolulu原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。