public void DisplayPreMatchDialog(int dialogId)
    {
        PreMatchDialogComponent pmdc = gameObject.AddComponent <PreMatchDialogComponent>();

        pmdc.dialogId = dialogId;
        pmdc.dialog   = _dialogs[dialogId];
    }
 public override void OnComponentAdded(BaseComponent c)
 {
     if (c is PreMatchDialogComponent)
     {
         PreMatchDialogComponent pmdc = c as PreMatchDialogComponent;
         GameController.Instance.ShowHideLuck(true);
         PlayerPrefs.SetInt("CheckPoint", pmdc.dialogId);
         DisplayDialog(pmdc);
     }
 }