/// <summary>
 /// Implementation of <see cref="http://docs.unity3d.com/ScriptReference/MonoBehaviour.html">MonoBehaviour</see>.OnDestroy().
 /// </summary>
 private void OnDestroy()
 {
     KillAll();
 #if !UNITY_WEBPLAYER
     SaveTiles();
 #endif
     instance = null;
 }
Пример #2
0
 /// <summary>
 /// Implementation of <see cref="http://docs.unity3d.com/ScriptReference/MonoBehaviour.html">MonoBehaviour</see>.OnDestroy().
 /// </summary>
 private void OnDestroy()
 {
     KillAll();
     instance = null;
 }
		/// <summary>
		/// Implementation of <see cref="http://docs.unity3d.com/ScriptReference/MonoBehaviour.html">MonoBehaviour</see>.OnDestroy().
		/// </summary>
		private void OnDestroy()
		{
	        KillAll();		
	#if !UNITY_WEBPLAYER
			SaveTiles();
	#endif
			instance = null;
		}