Files
Inter-Face-Off/Assets/MouseHover.cs
StudentJW ff4bc745e1 Day 3 - Menu Stuff
Small changes & adjustments to the MenuScene.
2026-01-20 15:25:24 +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));
}
}