Exemplo n.º 1
0
    // Set next move in of all buttons to new position
    IEnumerator SetButtonMove(ePosMoveIn PosMoveIn, ePosMoveOut PosMoveOut)
    {
        yield return(new WaitForSeconds(2.0f));

        // Set next MoveIn position of m_Button1 to PosMoveIn
        m_Button1.m_MoveIn.MoveFrom = PosMoveIn;
        // Reset m_Button1
        m_Button1.Reset();
        // MoveIn m_Button1
        m_Button1.MoveIn(eGUIMove.SelfAndChildren);

        // Set next MoveIn position of m_Button2 to PosMoveIn
        m_Button2.m_MoveIn.MoveFrom = PosMoveIn;
        // Reset m_Button2
        m_Button2.Reset();
        // MoveIn m_Button2
        m_Button2.MoveIn(eGUIMove.SelfAndChildren);

        // Set next MoveIn position of m_Button3 to PosMoveIn
        m_Button3.m_MoveIn.MoveFrom = PosMoveIn;
        // Reset m_Button3
        m_Button3.Reset();
        // MoveIn m_Button3
        m_Button3.MoveIn(eGUIMove.SelfAndChildren);

        // Set next MoveIn position of m_Button4 to PosMoveIn
        m_Button4.m_MoveIn.MoveFrom = PosMoveIn;
        // Reset m_Button4
        m_Button4.Reset();
        // MoveIn m_Button4
        m_Button4.MoveIn(eGUIMove.SelfAndChildren);
    }
Exemplo n.º 2
0
    // ######################################################################
    // Move dialog functions
    // ######################################################################

    #region Move Dialog

    // MoveIn m_Dialog by position
    IEnumerator DialogMoveIn(ePosMoveIn PosMoveIn)
    {
        yield return(new WaitForSeconds(1.5f));

        //Debug.Log("PosMoveIn="+PosMoveIn);
        switch (PosMoveIn)
        {
        // Set m_Dialog to move in from upper
        case ePosMoveIn.From_UpperScreenEdge:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_UpperScreenEdge;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from left
        case ePosMoveIn.From_LeftScreenEdge:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_LeftScreenEdge;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from right
        case ePosMoveIn.From_RightScreenEdge:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_RightScreenEdge;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from bottom
        case ePosMoveIn.From_BottomScreenEdge:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_BottomScreenEdge;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from upper left
        case ePosMoveIn.From_UpperLeft:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_UpperLeft;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from upper right
        case ePosMoveIn.From_UpperRight:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_UpperRight;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from bottom left
        case ePosMoveIn.From_BottomLeft:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_BottomLeft;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from bottom right
        case ePosMoveIn.From_BottomRight:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_BottomRight;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;

        // Set m_Dialog to move in from center
        case ePosMoveIn.From_Center:
        default:
            m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_Center;
            m_Dialog.m_MoveOut.MoveTo  = ePosMoveOut.To_Center;
            break;
        }

        // Reset m_Dialog
        m_Dialog.Reset();

        // MoveIn m_Dialog by position
        m_Dialog.MoveIn(eGUIMove.SelfAndChildren);
    }
Exemplo n.º 3
0
	// ######################################################################
	// Move dialog functions
	// ######################################################################
	
	#region Move Dialog

	// MoveIn m_Dialog by position
	IEnumerator DialogMoveIn(ePosMoveIn PosMoveIn)
	{
		yield return new WaitForSeconds(1.5f);
		
		//Debug.Log("PosMoveIn="+PosMoveIn);
		switch(PosMoveIn)
		{
			// Set m_Dialog to move in from upper
			case ePosMoveIn.From_UpperScreenEdge:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_UpperScreenEdge;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from left
			case ePosMoveIn.From_LeftScreenEdge:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_LeftScreenEdge;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from right
			case ePosMoveIn.From_RightScreenEdge:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_RightScreenEdge;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from bottom
			case ePosMoveIn.From_BottomScreenEdge:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_BottomScreenEdge;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from upper left
			case ePosMoveIn.From_UpperLeft:	
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_UpperLeft;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from upper right
			case ePosMoveIn.From_UpperRight:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_UpperRight;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from bottom left
			case ePosMoveIn.From_BottomLeft:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_BottomLeft;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from bottom right
			case ePosMoveIn.From_BottomRight:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_BottomRight;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
			// Set m_Dialog to move in from center
			case ePosMoveIn.From_Center:
			default:
				m_Dialog.m_MoveIn.MoveFrom = ePosMoveIn.From_Center;
				m_Dialog.m_MoveOut.MoveTo = ePosMoveOut.To_Center;
				break;
		}

		// Reset m_Dialog
		m_Dialog.Reset();

		// MoveIn m_Dialog by position
		m_Dialog.MoveIn(eGUIMove.SelfAndChildren);
	}
Exemplo n.º 4
0
	// Set next move in of all buttons to new position
	IEnumerator SetButtonMove(ePosMoveIn PosMoveIn, ePosMoveOut PosMoveOut)
	{
		yield return new WaitForSeconds(2.0f);
		
		// Set next MoveIn position of m_Button1 to PosMoveIn
		m_Button1.m_MoveIn.MoveFrom = PosMoveIn;
		// Reset m_Button1
		m_Button1.Reset();
		// MoveIn m_Button1
		m_Button1.MoveIn(eGUIMove.SelfAndChildren);
		
		// Set next MoveIn position of m_Button2 to PosMoveIn
		m_Button2.m_MoveIn.MoveFrom = PosMoveIn;
		// Reset m_Button2
		m_Button2.Reset();
		// MoveIn m_Button2
		m_Button2.MoveIn(eGUIMove.SelfAndChildren);
		
		// Set next MoveIn position of m_Button3 to PosMoveIn
		m_Button3.m_MoveIn.MoveFrom = PosMoveIn;
		// Reset m_Button3
		m_Button3.Reset();
		// MoveIn m_Button3
		m_Button3.MoveIn(eGUIMove.SelfAndChildren);
		
		// Set next MoveIn position of m_Button4 to PosMoveIn
		m_Button4.m_MoveIn.MoveFrom = PosMoveIn;
		// Reset m_Button4
		m_Button4.Reset();
		// MoveIn m_Button4
		m_Button4.MoveIn(eGUIMove.SelfAndChildren);
	}