void Awake() { pv = GetComponent<PhotonView>(); PhotonNetwork.isMessageQueueRunning = true; //네트워크 메시지 수신을 다시 연결 outComeLose = GameObject.Find("OutcomeLose").GetComponent<Text>(); outComeWin = GameObject.Find("OutcomeWin").GetComponent<Text>(); tankPosition = GetComponent<TankPosition>(); reset = false; SetKD(); }
void Awake() { pv = GetComponent<PhotonView>(); mar = GameObject.Find("GameManager").GetComponent<GameMgr>(); tankPosition = GameObject.Find("GameManager").GetComponent<TankPosition>(); killDeathLoMsg = GameObject.Find("KillDeathLoMsg ").GetComponent<Text>(); scrollContents = GameObject.Find("KDLoMsgScroll").GetComponent<RectTransform>(); roomKill = (int)PhotonNetwork.room.customProperties["aimKill"]; rotator = GameObject.Find("SkyCamera").GetComponent<RotateSkyBox>(); textHp = GameObject.Find("HP").GetComponent<Text>(); nowtankHp = tankHp; //현재 생명력을 초기 생명력으로 초기화 textHp.text = nowtankHp.ToString(); textHp.color = Color.green; }