void Update() { if (playerone.spellbooksync == 1 && playertwo.spellbooksync == 1) { battleUIManager.SetNames(); LoadSpellbook(); playertwo.spellbooksync = 2; playerone.spellbooksync = 2; battleUIManager.SetPortraits(); battleUIManager.UpdateStats(); CardSelected(0); battleUIManager.CardSelectedUI(0); infotext.text = ""; blocker.gameObject.SetActive(false); StartCoroutine(TurnInfo()); } if (playerone.health < 0 || playertwo.health < 0) { photonView.RPC("EndGame", RpcTarget.All); } }
public void OnPointerExit(PointerEventData eventData) { battleUIManager.CardSelectedUI(battleUIManager.selectedcardnumber); }