コード例 #1
0
    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);
            }
        }
    }
コード例 #2
0
 // Use this for initialization
 void Awake()
 {
     Instance             = this;
     IsOverTeXiaoZhunXing = false;
     ZhunXingParticleArray[0].SetActive(false);
     ZhunXingParticleArray[1].SetActive(false);
     gameObject.SetActive(false);
     ZhunXingParticle.SetActive(false);
 }