예제 #1
0
 public virtual void EnterState(MenuFlow.GameState state)
 {
     if (!AlwaysActivate)
     {
         Debug.Log("EnterState " + state);
         if (state == trigger)
         {
             GetComponent <CanvasGroup>().alpha          = 1;
             GetComponent <CanvasGroup>().blocksRaycasts = true;
             StartInterface();
         }
     }
 }
예제 #2
0
 public virtual void ExitState(MenuFlow.GameState state)
 {
     if (!AlwaysActivate)
     {
         Debug.Log("ExitState - " + state);
         if (state == trigger)
         {
             GetComponent <CanvasGroup>().alpha          = 0;
             GetComponent <CanvasGroup>().blocksRaycasts = false;
         }
         ;
     }
 }