示例#1
0
        /// <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
        }
示例#2
0
        /// <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
        }
示例#3
0
        /// <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
        }
示例#4
0
        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 = "";
        }
示例#6
0
        public void PrintErrorLog(ICEOwnerObject _object, string _log)
        {
#if UNITY_EDITOR
            ICEDebug.LogError(OwnerName + " (" + OwnerInstanceID + ") - " + (_object != null?_object.GetType().ToString() + " ":"") + _log);
#endif
        }