27 lines
467 B
C#
27 lines
467 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|