로딩
티스토리 데이터 처리 중입니다.

유니티 C# 포톤 변수 동기화 Photon RPC

 유니티 C# 포톤 변수 동기화 Photon RPC

코드 작성 using System.Collections; using System.Collections.Generic; using UnityEngine; using Photon.Pun; using Photon.Realtime; using UnityEngine.UI; public class NetworkManager : MonoBehaviourPunCallbacks { int towerHp = 100; bool isRaining = false; public PhotonView PV; void AttackTower() { PV.RPC("HitTower", RpcTarget.All); //방 전체 사람들에게 타워 체력 -10 PV.RPC("HitTower", RpcTarget.All, 10); PV.RPC("H.....