public void SetFenZhi(FenZhi f) { fenzhi = f; switch (fenzhi) { case FenZhi.A: DoorManager.Instance.Level_21_Preprocessing_A(); break; case FenZhi.B: //关掉Rick RickManager.Instance.rick.SetActive(false); DoorManager.Instance.Level_21_Preprocessing_B(); break; case FenZhi.C: RickManager.Instance.rick.SetActive(false); DoorManager.Instance.Level_21_Preprocessing_C(); break; default: break; } }
private void InitData() { CanShu cs = new CanShu(); IList list = Services.BaseService.GetList("SelectCanShuList", cs); gridControl1.DataSource = list; FenZhi fz = new FenZhi(); IList listf = Services.BaseService.GetList("SelectFenZhiList", fz); gridControl.DataSource = listf; }
public void UpdateStartLevel20() //玩家到达20层 { if (fenzhi == FenZhi.Null && !DaoDa20 && UtilFunction.IsReachDistanceXYZ(PlayerGO.transform.position, positions[0].position, 1, 1f) && PlayerGO.transform.position.y > positions[0].position.y) { CiviliansManager.Instance.Init(); NPC_0_Script.KanShi(); Zomber_1_Script.KaiShi(); fenzhi = FenZhi.B; DaoDa20 = true; } }
void Update() { if (PlayerGO == null) { return; } UpdateStartLevel20(); if (fenzhi == FenZhi.Null && UtilFunction.IsReachDistanceXYZ(PlayerGO.transform.position, positions[5].position, 1f, 1f)) { fenzhi = FenZhi.A; } if (hoaveKey_B1) { if (UtilFunction.IsReachDistanceXYZ(PlayerGO.transform.position, positions[4].position, 0.5f)) { Key_B1_2.SetActive(true); hoaveKey_B1 = false; } } }