void ClothesTypeCheckBottom(Material material) { if (material.name.IndexOf("_001", StringComparison.Ordinal) >= 0) { //制服型 bottomsTex = material.mainTexture; myClothesBottomTyep = BottomType.Skirt; } else if (material.name.IndexOf("_002", StringComparison.Ordinal) >= 0) { return; } else if (material.name.IndexOf("_003", StringComparison.Ordinal) >= 0) { //ズボン bottomsTex = material.mainTexture; myClothesBottomTyep = BottomType.Pants; } else if (material.name.IndexOf("_004", StringComparison.Ordinal) >= 0) { //ペンシルスカート bottomsTex = material.mainTexture; myClothesBottomTyep = BottomType.PencilSkirt; } else if (material.name.IndexOf("_008", StringComparison.Ordinal) >= 0) { //ズボンロングコート bottomsTex = material.mainTexture; myClothesBottomTyep = BottomType.Pants_Longcoat; } }
public ActionResult DeleteConfirmed(int id) { BottomType bottomType = db.BottomTypes.Find(id); db.BottomTypes.Remove(bottomType); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "BottomsTypeID,BottomType1")] BottomType bottomType) { if (ModelState.IsValid) { db.Entry(bottomType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bottomType)); }
public ActionResult Create([Bind(Include = "BottomsTypeID,BottomType1")] BottomType bottomType) { if (ModelState.IsValid) { db.BottomTypes.Add(bottomType); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bottomType)); }
// GET: BottomTypes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } BottomType bottomType = db.BottomTypes.Find(id); if (bottomType == null) { return(HttpNotFound()); } return(View(bottomType)); }
//ヒット判定 void OnTriggerStay(Collider other) { if (isBodyHit) { return; } //レイヤーでフィルタかけたほうが安全です { isBodyHit = true; var Player = other.gameObject; if (Player != null) { if (Player.GetComponent <BackClothes>()) { var backClothes = Player.GetComponent <BackClothes>(); Body = backClothes.Body; isVRoid = backClothes.IsVRoid; bodyBottomType = backClothes.IsClothesBottomTyep; } } } }
private BottomType GetBottomType(bool ISOK) { BottomType bt = new BottomType(cb_DangQianDangHao.Text, btn_JianYanBianHao.Text, cbb_danshandansuodian.Text == "是" ? true : false, ISOK); return(bt); }
private BottomType GetBottomType(bool ISOK) { BottomType bt = new BottomType(cb_DangQianDangHao.Text, btn_JianYanBianHao.Text, ISOK); return(bt); }