コード例 #1
0
 /// <summary>Appends a description of this call.</summary>
 public void ToString(StringBuilder text)
 {
     text.Append("PersistentCall: MethodName=");
     text.Append(_MethodName);
     text.Append(", Target=");
     text.Append(_Target != null ? _Target.ToString() : "null");
     text.Append(", PersistentArguments=");
     UltEventUtils.AppendDeepToString(text, _PersistentArguments.GetEnumerator(), "\n        ");
 }
コード例 #2
0
        /// <summary>Appends a description of this event.</summary>
        public void ToString(StringBuilder text)
        {
            text.Append(GetType().GetNameCS());

            text.Append(": PersistentCalls=");
            UltEventUtils.AppendDeepToString(text, _PersistentCalls.GetEnumerator(), "\n    ");

            text.Append("\n    DynamicCalls=");
#if UNITY_EDITOR
            var invocationList = GetDynamicCallInvocationList();
#else
            var invocationList = DynamicCallsBase != null?DynamicCallsBase.GetInvocationList() : null;
#endif
            var enumerator = invocationList != null?invocationList.GetEnumerator() : null;

            UltEventUtils.AppendDeepToString(text, enumerator, "\n    ");
        }