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.
 
 
 

31 lines
751 B

namespace VRTK.Examples.PanelMenu
{
using UnityEngine;
/// <summary>
/// Demo component for Panel Menu example scene.
/// </summary>
/// <example>
/// See the demo scene for a complete example: [ 040_Controls_Panel_Menu ]
/// </example>
public class PanelMenuDemoFlyingSaucer : MonoBehaviour
{
private readonly Color[] colors =
{
Color.black,
Color.blue,
Color.cyan,
Color.gray,
Color.green,
Color.magenta,
Color.red,
Color.white
};
public void UpdateGridLayoutValue(int selectedIndex)
{
transform.GetChild(1).GetComponent<MeshRenderer>().materials[0].color = colors[selectedIndex];
}
}
}