You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			627 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			627 B
		
	
	
	
		
			C#
		
	
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
 | 
						|
//
 | 
						|
// Purpose: Sets a random rotation for the arrow head
 | 
						|
//
 | 
						|
//=============================================================================
 | 
						|
 | 
						|
using UnityEngine;
 | 
						|
using System.Collections;
 | 
						|
 | 
						|
namespace Valve.VR.InteractionSystem
 | 
						|
{
 | 
						|
	//-------------------------------------------------------------------------
 | 
						|
	public class ArrowheadRotation : MonoBehaviour
 | 
						|
	{
 | 
						|
		//-------------------------------------------------
 | 
						|
		void Start()
 | 
						|
		{
 | 
						|
			float randX = Random.Range( 0f, 180f );
 | 
						|
			transform.localEulerAngles = new Vector3( randX, -90f, 90f );
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |