void OnSreenAlphaToMin() { if (Network.peerType != NetworkPeerType.Server) { ZhunXingTeXiaoCtrl.GetInstance().ShowZhunXingTeXiao(); } else { StartCameraObj.SetActive(false); ScreenDanHeiObj.SetActive(false); } if (XkGameCtrl.GetInstance().IsServerCameraTest || Network.peerType == NetworkPeerType.Server) { XkGameCtrl.ActiveServerCameraTran(); if (XKPlayerCamera.GetInstanceFeiJi() != null) { XKPlayerCamera.GetInstanceFeiJi().SetEnableCamera(false); } if (XKPlayerCamera.GetInstanceTanKe() != null) { XKPlayerCamera.GetInstanceTanKe().SetEnableCamera(false); } } }
// Use this for initialization void Awake() { Instance = this; IsOverTeXiaoZhunXing = false; ZhunXingParticleArray[0].SetActive(false); ZhunXingParticleArray[1].SetActive(false); gameObject.SetActive(false); ZhunXingParticle.SetActive(false); }