/// <summary> /// Draws debug line. /// </summary> /// <param name="_from">From.</param> /// <param name="_to">To.</param> /// <param name="_color">Color.</param> public void DebugLine(Vector3 _from, Vector3 _to, Color _color) { #if UNITY_EDITOR if (DebugRayIsEnabled) { ICEDebug.DrawLine(_from, _to, _color); } #endif }
/// <summary> /// Draws debug rays. /// </summary> /// <param name="_origin">Origin.</param> /// <param name="_direction">Direction.</param> /// <param name="_color">Color.</param> public void DebugRay(Vector3 _origin, Vector3 _direction, Color _color) { #if UNITY_EDITOR if (DebugRayIsEnabled) { ICEDebug.DrawRay(_origin, _direction, _color); } #endif }
/// <summary> /// Prints the debug log. /// </summary> /// <param name="_log">Log.</param> public void PrintDebugLog(ICEOwnerObject _object, string _log) { #if UNITY_EDITOR if (DebugLogIsEnabled) { ICEDebug.Log(OwnerName + " (" + OwnerInstanceID + ") - " + (_object != null?_object.GetType().ToString() + " ":"") + _log); } #endif }
private static void LoadDemo(string _scene) { string _path = "Assets/ICE/ICECreatureControlTutorials/Tutorials/" + _scene + "/" + _scene + ".unity"; ICEDebug.LogInfo("Open Tutorial Scene : " + _path); #if UNITY_5_3 || UNITY_5_3_OR_NEWER EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo(); EditorSceneManager.OpenScene(_path); #else EditorApplication.OpenScene(_path); #endif }
public override void Reset() { if (GroupTransform == null) { return; } GroupTransform.DetachChildren(); GameObject.DestroyImmediate(GroupTransform.gameObject); if (GroupTransform == null) { ICEDebug.Log(GroupName + " (" + EntityType.ToString() + ") removed!"); } GroupName = ""; }
public void PrintErrorLog(ICEOwnerObject _object, string _log) { #if UNITY_EDITOR ICEDebug.LogError(OwnerName + " (" + OwnerInstanceID + ") - " + (_object != null?_object.GetType().ToString() + " ":"") + _log); #endif }