Пример #1
0
 void Start()
 {
     mainCamera = GameObject.Find("Main Camera");
     rotator = GameObject.Find("SkyCamera").GetComponent<RotateSkyBox>();
     _renderer = GameObject.Find("ZoomImage");
     _renderer.renderer.enabled = false;
 }
Пример #2
0
 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;
 }