Exemple #1
0
 public void TriggerWin(WinSceneConditionHandle.WinPlayer winPlayer)
 {
     if (!winReady)
     {
         winReady = true;
         WinSceneConditionHandle.SetHandle(winPlayer);
         StartCoroutine(WinSceneTransferAfter(3f));
     }
 }
Exemple #2
0
    private IEnumerator Start()
    {
        yield return(new WaitForSeconds(1f));

        var winplayer = WinSceneConditionHandle.ReadHandleAndDestroy();

        if (winplayer == WinSceneConditionHandle.WinPlayer.player1)
        {
            player1Win.SetActive(true);
            player2Win.SetActive(false);
        }
        else
        {
            player1Win.SetActive(false);
            player2Win.SetActive(true);
        }
    }