public void TriggerWin(WinSceneConditionHandle.WinPlayer winPlayer) { if (!winReady) { winReady = true; WinSceneConditionHandle.SetHandle(winPlayer); StartCoroutine(WinSceneTransferAfter(3f)); } }
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); } }