Exemplo n.º 1
0
        /// <summary>
        /// Persists the game object name change<br/>
        /// The transform name could be changed by clicking the game object in the hierarchy and pressing F2 for rename
        /// </summary>
        /// <param name="transform"></param>
        // ReSharper disable SuggestBaseTypeForParameter
        private void RecordNameChange(Transform transform)
        // ReSharper restore SuggestBaseTypeForParameter
        {
            PersistedNameChange persistedNameChange = new PersistedNameChange(transform);

            _nameChanges.Add(persistedNameChange);
#if DEBUG
            if (DebugMode)
            {
                Debug.Log("Transform name cached: " + persistedNameChange);
            }
#endif
        }
Exemplo n.º 2
0
		/// <summary>
		/// Persists the game object name change<br/>
		/// The transform name could be changed by clicking the game object in the hierarchy and pressing F2 for rename
		/// </summary>
		/// <param name="transform"></param>
		// ReSharper disable SuggestBaseTypeForParameter
		private void RecordNameChange(Transform transform)
		// ReSharper restore SuggestBaseTypeForParameter
		{
			PersistedNameChange persistedNameChange = new PersistedNameChange(transform);
			_nameChanges.Add(persistedNameChange);
#if DEBUG
			if (DebugMode)
			{
				Debug.Log("Transform name cached: " + persistedNameChange);
			}
#endif
		}