Hi all,
anybody knows if there is the possibility to start the interaction on a specific hotspot without clicking on it but just pass over the mouse cursor?
Like in the scene above (damn rat, he just run away after passing the mouse cursor over it several times!).
Thanks!
Comments
Smth like that:
using UnityEngine;
using System.Collections;
namespace AC{
public class StartActionlistOnMouseHover : MonoBehaviour {
public Spriterenderer SpriteHover;
void Start () {
}
void Update() {
}
void OnMouseOver () {
if(SprietHover)
{
yourActionlist.Interact ();
}
}
}
}
I haven't tried it and have some difficulties to adjusting to Uniy code from the previous engine I worked with but I hope this helps.
I wanted an animation to play when over a hotspot
http://www.adventurecreator.org/forum/discussion/comment/8745#Comment_8745