コード例 #1
0
    public void DisplayPreMatchDialog(int dialogId)
    {
        PreMatchDialogComponent pmdc = gameObject.AddComponent <PreMatchDialogComponent>();

        pmdc.dialogId = dialogId;
        pmdc.dialog   = _dialogs[dialogId];
    }
コード例 #2
0
 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);
     }
 }