using UnityEngine;
using System.Collections;
public class MyGizmo : MonoBehaviour {
public Color _color = Color.yellow;
public float _radius = 0.2f;
void OnDrawGizmos()
{
Gizmos.color = _color;
Gizmos.DrawSphere(transform.position,_radius); //DrawSphere -->
}
}
'유니티3D > 예제' 카테고리의 다른 글
PlayerCtrl (0) | 2013.08.06 |
---|---|
Bullet (0) | 2013.08.06 |
Spark.cs (0) | 2013.08.06 |
bulletCtrl (0) | 2013.07.25 |
PlayerCtrl_V2 (0) | 2013.07.25 |