IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
ArrowheadRotation.cs
1 //======= Copyright (c) Valve Corporation, All rights reserved. ===============
2 //
3 // Purpose: Sets a random rotation for the arrow head
4 //
5 //=============================================================================
6 
7 using UnityEngine;
8 using System.Collections;
9 
10 namespace Valve.VR.InteractionSystem
11 {
12  //-------------------------------------------------------------------------
13  public class ArrowheadRotation : MonoBehaviour
14  {
15  //-------------------------------------------------
16  void Start()
17  {
18  float randX = Random.Range( 0f, 180f );
19  transform.localEulerAngles = new Vector3( randX, -90f, 90f );
20  }
21  }
22 }