private void OnDrawGizmos() { foreach (var VARIABLE in CharacterInfos) { // if(VARIABLE.characterInfo==null) // continue; Gizmos.color = VARIABLE.color; GizmosUtil.DrawSign(VARIABLE.position, signalSize); } }
protected virtual void OnDrawGizmos() { if (!gameObject.activeSelf || !enabled) { return; } Gizmos.color = DefaultGizmoColor; foreach (var VARIABLE in createInfos) { if (VARIABLE.enable == false) { continue; } GizmosUtil.DrawSign(VARIABLE.position, signalSize); #if UNITY_EDITOR Handles.Label(VARIABLE.position, $"【{name}:{VARIABLE._personType}】", Style); #endif } }