Example #1
0
		/// <summary>
		/// Removes this object from the world
		/// </summary>
		public override void Delete()
		{
			if (m_removeItemAction != null)
			{
				m_removeItemAction.Stop();
				m_removeItemAction = null;
			}
			base.Delete ();
		}
Example #2
0
		/// <summary>
		/// Adds this object to the world
		/// </summary>
		/// <returns>true if successfull</returns>
		public override bool AddToWorld()
		{
			if(!base.AddToWorld()) return false;
			if (m_removeItemAction == null)
				m_removeItemAction = new RemoveItemAction(this);
			m_removeItemAction.Start((int)m_removeDelay);
			return true;
		}