Exemplo n.º 1
0
        public ICEOwnerObject(ICEOwnerObject _object) : base(_object)
        {
            m_OwnerComponent = (_object != null?_object.OwnerComponent:null);
            m_Owner          = (m_OwnerComponent != null ? m_OwnerComponent.gameObject:null);

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