예제 #1
0
 void OnEnterMainMenu(MainUIState state)
 {
     m_mainMenuObject = GameObject.Instantiate(m_mainMenuPrefab) as GameObject;
     m_mainMenuObject.transform.SetParent(gameObject.transform);
     m_mainMenuObject.GetComponent <RectTransform>().sizeDelta        = Vector2.zero;
     m_mainMenuObject.GetComponent <RectTransform>().anchoredPosition = Vector2.zero;
 }
예제 #2
0
 void OnEnterMainMenu(MainUIState state)
 {
     m_mainMenuObject = GameObject.Instantiate(m_mainMenuPrefab) as GameObject;
     m_mainMenuObject.transform.SetParent(gameObject.transform);
     m_mainMenuObject.GetComponent<RectTransform>().sizeDelta = Vector2.zero;
     m_mainMenuObject.GetComponent<RectTransform>().anchoredPosition = Vector2.zero;
 }
예제 #3
0
	public void TransitionToState(MainUIState toState)
	{
          Debug.Log("Current State: " + toState.ToString());
		m_prevState = m_currentState;
		if (m_UIStates [(int)m_prevState].m_end != null)
			m_UIStates [(int)m_prevState].m_end (m_prevState);
		m_currentState = toState;
		m_UIStates [(int)m_currentState].m_begin (m_currentState);
	}
예제 #4
0
 public void TransitionToState(MainUIState toState)
 {
     Debug.Log("Current State: " + toState.ToString());
     m_prevState = m_currentState;
     if (m_UIStates [(int)m_prevState].m_end != null)
     {
         m_UIStates [(int)m_prevState].m_end(m_prevState);
     }
     m_currentState = toState;
     m_UIStates [(int)m_currentState].m_begin(m_currentState);
 }
예제 #5
0
 void OnExitFBLogin(MainUIState state)
 {
     Destroy(m_FBLoginObject);
 }
예제 #6
0
   void OnEnterFBLogin(MainUIState state)
 {
     m_FBLoginObject = GameObject.Instantiate(m_FBLoginPrefab) as GameObject;
     m_FBLoginObject.transform.parent = gameObject.transform;
     m_FBLoginObject.transform.localScale = Vector3.one;            
 }
예제 #7
0
 void OnExitMainMenu(MainUIState state)
 {
     Destroy(m_mainMenuObject);
 }
예제 #8
0
 public void UnRegisterForState(MainUIState registeredState, OnStateBegin begin, OnStateEnd end)
 {
     m_UIStates [(int)registeredState].m_begin -= begin;
     m_UIStates [(int)registeredState].m_end   -= end;
 }
예제 #9
0
	public void UnRegisterForState(MainUIState registeredState, OnStateBegin begin, OnStateEnd end)
	{
		m_UIStates [(int)registeredState].m_begin -= begin;
		m_UIStates [(int)registeredState].m_end -= end;
	}
예제 #10
0
 void OnExitFBLogin(MainUIState state)
 {
     Destroy(m_FBLoginObject);
 }
예제 #11
0
 void OnEnterFBLogin(MainUIState state)
 {
     m_FBLoginObject = GameObject.Instantiate(m_FBLoginPrefab) as GameObject;
     m_FBLoginObject.transform.parent     = gameObject.transform;
     m_FBLoginObject.transform.localScale = Vector3.one;
 }
예제 #12
0
 void OnExitMainMenu(MainUIState state)
 {
     Destroy(m_mainMenuObject);
 }