예제 #1
0
파일: Demo07.cs 프로젝트: helghast/OMFv3
    // 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);
    }
예제 #2
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);
	}