Version 17.5

This commit is contained in:
Mediha Zukic
2017-05-17 12:25:25 +03:00
parent 56473639f3
commit 16ee526661
2000 changed files with 177858 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
//======= 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 );
}
}
}