Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
771 B

namespace VRTK.Examples
{
using UnityEngine;
using UnityEngine.UI;
public abstract class VRTKExample_OptionTile : MonoBehaviour
{
public Image backgroundImage;
public Color highlightColor = Color.yellow;
public abstract void Activate();
protected Color originalColor = Color.clear;
public virtual void Highlight()
{
if (backgroundImage != null)
{
originalColor = backgroundImage.color;
backgroundImage.color = highlightColor;
}
}
public virtual void Unhighlight()
{
if (backgroundImage != null)
{
backgroundImage.color = originalColor;
}
}
}
}