////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public void AddDelegate(IHovercursorDelegate pDelegate)
        {
            if (vDelegates.Contains(pDelegate))
            {
                throw new Exception("This " + typeof(IHovercursorDelegate).Name +
                                    " has already been added.");
            }

            vDelegates.Add(pDelegate);
        }
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public void AddDelegate(IHovercursorDelegate pDelegate)
        {
            if ( vDelegates.Contains(pDelegate) ) {
                throw new Exception("This "+typeof(IHovercursorDelegate).Name+
                    " has already been added.");
            }

            vDelegates.Add(pDelegate);
            vInput.SetPlaneProvider(GetActiveCursorPlanes);
        }
Ejemplo n.º 3
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public void AddDelegate(IHovercursorDelegate pDelegate)
        {
            if (vDelegates.Contains(pDelegate))
            {
                throw new Exception("This " + typeof(IHovercursorDelegate).Name +
                                    " has already been added.");
            }

            vDelegates.Add(pDelegate);
            vInput.SetPlaneProvider(GetActiveCursorPlanes);
        }
		/*--------------------------------------------------------------------------------------------*/
		public bool RemoveDelegate(IHovercursorDelegate pDelegate) {
			return vDelegates.Remove(pDelegate);
		}
		////////////////////////////////////////////////////////////////////////////////////////////////
		/*--------------------------------------------------------------------------------------------*/
		public void AddDelegate(IHovercursorDelegate pDelegate) {
			if ( vDelegates.Contains(pDelegate) ) {
				throw new Exception("This "+typeof(IHovercursorDelegate).Name+
					" has already been added.");
			}

			vDelegates.Add(pDelegate);
		}
 /*--------------------------------------------------------------------------------------------*/
 public bool RemoveDelegate(IHovercursorDelegate pDelegate)
 {
     return(vDelegates.Remove(pDelegate));
 }