Day2-Morning
This commit is contained in:
20
Assets/MouseHover.cs
Normal file
20
Assets/MouseHover.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MouseHover : MonoBehaviour
|
||||
{
|
||||
|
||||
void OnMouseOver()
|
||||
{
|
||||
Debug.Log("tHIS");
|
||||
iTween.ScaleTo(gameObject, iTween.Hash("x", 1.25, "y", 1.25, "time", 1));
|
||||
}
|
||||
|
||||
void OnMouseExit()
|
||||
{
|
||||
|
||||
|
||||
iTween.ScaleTo(gameObject, iTween.Hash("x", 1, "y", 1, "time", 1));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user