void OnDrawGizmos()

반응형
debug용으로 갠춘한듯.

void OnDrawGizmos()
{
Gizmos.color = Color.red;
Gizmos.DrawWireSphere(transform.position, attackRange);
Gizmos.color = Color.blue;
Gizmos.DrawWireSphere(transform.position, searchRange);
} 


 

'Unity > Unity Study' 카테고리의 다른 글

singleton  (0) 2015.02.18
C# keywords  (0) 2015.02.18
unity - camera smooth follow  (0) 2013.11.16
Unity - Character Controller  (0) 2013.11.03
unity - time 출력  (0) 2013.10.30
TAGS.

Comments