*
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
[ExecuteInEditMode]
|
||||
public class HelperGizmo : MonoBehaviour {
|
||||
public float Raduis = 0.1f;
|
||||
public bool Wire = true;
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
|
||||
void OnDrawGizmos(){
|
||||
if(transform != null){
|
||||
if(Wire)
|
||||
Gizmos.DrawWireSphere (transform.position, Raduis);
|
||||
else
|
||||
Gizmos.DrawSphere (transform.position, Raduis);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user