예제 #1
0
    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;
        }
    }
예제 #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            BottomType bottomType = db.BottomTypes.Find(id);

            db.BottomTypes.Remove(bottomType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #3
0
 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));
 }
예제 #4
0
        public ActionResult Create([Bind(Include = "BottomsTypeID,BottomType1")] BottomType bottomType)
        {
            if (ModelState.IsValid)
            {
                db.BottomTypes.Add(bottomType);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bottomType));
        }
예제 #5
0
        // 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;
                }
            }
        }
    }
예제 #7
0
        private BottomType GetBottomType(bool ISOK)
        {
            BottomType bt = new BottomType(cb_DangQianDangHao.Text, btn_JianYanBianHao.Text, cbb_danshandansuodian.Text == "是" ? true : false, ISOK);

            return(bt);
        }
예제 #8
0
        private BottomType GetBottomType(bool ISOK)
        {
            BottomType bt = new BottomType(cb_DangQianDangHao.Text, btn_JianYanBianHao.Text, ISOK);

            return(bt);
        }