the script as soon as you start game
i want it to show only when i enter mouse on the game object can someone please point me where am i going wrong thanks
using System.Collections;
using CorruptedSmileStudio.Feeds;
/// <summary>
/// Shows the addon buttons: RSS, ATOM and Wordpress
/// </summary>
public class Example : MonoBehaviour
{
/// <summary>
/// The feedme gameObject
/// </summary>
public Transform feedme;
/// <summary>
/// The FeedMe Component.
/// </summary>
private FeedMe feed;
void OnMouseEnter()
{
feed = feedme.GetComponent<FeedMe>();
}
void OnMouseEnter()
{
if (!feed.status.updating)
{
if (GUI.Button(new Rect(feed.feedBtnWidth + feed.reloadBtnWidth, 0, feed.reloadBtnWidth + 10, 30), "RSS"))
{
feed.feed = null;
feed.feedURL = "http://dl.dropbox.com/u/43996324/FeedMe/feeds/rss.xml";
// Resets the vars
feed.status.updateFeed = true;
// Starts the getFeed Coroutine
StartCoroutine(feed.GetFeed());
}
if (GUI.Button(new Rect(feed.feedBtnWidth + (feed.reloadBtnWidth) * 2 + 10, 0, feed.reloadBtnWidth + 20, 30), "ATOM"))
{
feed.feed = null;
feed.feedURL = "http://dl.dropbox.com/u/43996324/FeedMe/feeds/atom.xml";
// Resets the vars
feed.status.updateFeed = true;
// Starts the getFeed Coroutine
StartCoroutine(feed.GetFeed());
}
if (GUI.Button(new Rect(feed.feedBtnWidth + (feed.reloadBtnWidth) * 3 + 30, 0, feed.reloadBtnWidth + 50, 30), "Wordpress"))
{
feed.feed = null;
feed.feedURL = "http://dl.dropbox.com/u/43996324/FeedMe/feeds/wordpress.xml";
// Resets the vars
feed.status.updateFeed = true;
// Starts the getFeed Coroutine
StartCoroutine(feed.GetFeed());
}
}
}
}