Esempio n. 1
0
 /// <summary>
 /// Clears everything stored in the drag & drop.
 /// </summary>
 public static void AcceptDrag()
 {
     s_CandidateForDrag = null;
     s_TransitionGUI    = null;
     s_Dragging         = null;
     s_StateGUI         = null;
 }
 /// <summary> 
 /// Clears everything stored in the drag & drop.
 /// </summary>
 public static void AcceptDrag () {
     s_CandidateForDrag = null;
     s_TransitionGUI = null;
     s_Dragging = null;
     s_StateGUI = null;
 }
 /// <summary> 
 /// Initiates a drag operation using the candidateForDrag transition supplied by PrepareStartDrag.
 /// </summary>
 public static void StartDrag () {
     s_Dragging = s_CandidateForDrag.transition;
     s_TransitionGUI = s_CandidateForDrag;
     s_CandidateForDrag = null;
 }
        // public static StateTransition dragged;

        #region Methods

        /// <summary> 
        /// Clears the current dragging transition and prepares for initiating a drag operation.
        /// <param name="transitionGUI">The transition gui candidate for dragging. You can access it later using the candidateForDrag property.</param>
        /// <param name="guiState">The StateGUI that has the transitionGui.</param>
        /// </summary>
        public static void PrepareStartDrag (TransitionGUI transitionGUI, StateGUI guiState) {
            s_CandidateForDrag = transitionGUI;
            s_StateGUI = guiState;
            s_Dragging = null;
        }
Esempio n. 5
0
 /// <summary>
 /// Initiates a drag operation using the candidateForDrag transition supplied by PrepareStartDrag.
 /// </summary>
 public static void StartDrag()
 {
     s_Dragging         = s_CandidateForDrag.transition;
     s_TransitionGUI    = s_CandidateForDrag;
     s_CandidateForDrag = null;
 }
Esempio n. 6
0
        // public static StateTransition dragged;

        #region Methods

        /// <summary>
        /// Clears the current dragging transition and prepares for initiating a drag operation.
        /// <param name="transitionGUI">The transition gui candidate for dragging. You can access it later using the candidateForDrag property.</param>
        /// <param name="guiState">The StateGUI that has the transitionGui.</param>
        /// </summary>
        public static void PrepareStartDrag(TransitionGUI transitionGUI, StateGUI guiState)
        {
            s_CandidateForDrag = transitionGUI;
            s_StateGUI         = guiState;
            s_Dragging         = null;
        }