Last active
September 15, 2017 08:18
-
-
Save EdSkamor/ec1b33f7c089747f51193c0953432e7e to your computer and use it in GitHub Desktop.
BlueLineToFront
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityStandardAssets.CrossPlatformInput; | |
public class GizmosScript : MonoBehaviour { | |
[Range(0f, 10f)] | |
public float Range = 2f; | |
private Transform m_thisTransform = null; | |
void OnDrawGizmos () { | |
Gizmos.color = Color.blue; | |
Gizmos.DrawLine(transform.position, transform.position + transform.forward * Range); | |
} | |
void Update () { | |
m_thisTransform.rotation = Quaternion.Euler(0f, 90f, 0f); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment