Axiom.Core.Node.RequestUpdate C# (CSharp) Method

RequestUpdate() public method

Called by children to notify their parent that they need an update.
public RequestUpdate ( Node child ) : void
child Node
return void
		public virtual void RequestUpdate( Node child )
		{
			// if we are already going to update everything, this wont matter
			if ( needChildUpdate )
				return;

			// add to the list of children that need updating
			if ( !childrenToUpdate.ContainsKey( child.name ) )
				childrenToUpdate.Add( child );

			// request to update me
			if ( parent != null && !isParentNotified )
			{
				parent.RequestUpdate( this );
				isParentNotified = true;
			}
		}