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(); } } }
public virtual void ExitState(MenuFlow.GameState state) { if (!AlwaysActivate) { Debug.Log("ExitState - " + state); if (state == trigger) { GetComponent <CanvasGroup>().alpha = 0; GetComponent <CanvasGroup>().blocksRaycasts = false; } ; } }