using System.Collections; using System.Collections.Generic; using System; using UnityEngine; /// /// 角色基类 /// public class RoleBase : BattleUnitBase { /// /// 目标角色 /// public Role TargetRole = null; /// /// 当前位置 /// public Vector3 CurPos = Vector3.zero; /// /// 自身Transform /// protected Transform selfTransform = null; /// /// 绘制信息 /// void OnDrawGizmosSelected() { #if UNITY_EDITOR if (selfTransform && mData != null) { // 观察范围 UnityEditor.Handles.color = Color.red; UnityEditor.Handles.DrawWireDisc(selfTransform.position, Vector3.up, mData.ORG_Final); // 攻击范围 UnityEditor.Handles.color = Color.green; UnityEditor.Handles.DrawWireDisc(selfTransform.position, Vector3.up, mData.ARG_Final); // 还原颜色 UnityEditor.Handles.color = Color.white; } #endif } }