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