コード例 #1
0
 public void setting(bool hard)
 {
     setshared();
     if (hard)        // is hard
     {
         sharedobj.setHardLevel(true);
         btn_hard.GetComponent <Image>().sprite = btn[1];
         btn_easy.GetComponent <Image>().sprite = btn[0];
     }
     else          // is easy
     {
         sharedobj.setHardLevel(false);
         btn_hard.GetComponent <Image>().sprite = btn[0];
         btn_easy.GetComponent <Image>().sprite = btn[1];
     }
     Debug.Log(sharedobj.getHardLevel());
 }