Example #1
0
        public override void OnDrawGizmos(Vector3 pos)
        {
            Gizmos.DrawSphere(pos, 0.5f);
            PathTriggerData data = PathTriggerData.Get(mTriggerId);

#if UNITY_EDITOR
            if (data.Type == BuffType.PAUSE_MOVE)
            {
                UnityEditor.Handles.Label(pos, string.Format("暂停{0}秒", data.Duration));
            }
            if (data.Type == BuffType.ACCELERATA_MOVE)
            {
                UnityEditor.Handles.Label(pos, string.Format("{0}%加速{1}秒", data.Accelerate * 100, data.Duration));
            }
            if (data.Type == BuffType.DECELERATA_MOVE)
            {
                UnityEditor.Handles.Label(pos, string.Format("{0}%减速{1}秒", data.Accelerate * 100, data.Duration));
            }
            if (data.Type == BuffType.FREEZE_MOVE)
            {
                UnityEditor.Handles.Label(pos, string.Format("冰冻{0}秒", data.Duration));
            }
#endif
        }
Example #2
0
 public override void OnDrawGizmos(Vector3 pos)
 {
     Gizmos.DrawSphere(pos, 0.5f);
     PathTriggerData data = PathTriggerData.Get(mTriggerId);
 }