// 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); }
// 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); }