Files
Inter-Face-Off/Assets/Scripts/MouseHover.cs
2026-01-22 13:07:01 +00:00

21 lines
368 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseHover : MonoBehaviour
{
void OnMouseOver()
{
iTween.ScaleTo(gameObject, iTween.Hash("x", 1.15, "y", 1.1, "time", 1.5));
}
void OnMouseExit()
{
iTween.ScaleTo(gameObject, iTween.Hash("x", 1, "y", 1, "time", 1.5));
}
}