Exemplo n.º 1
0
 public void siram()
 {
     rock.GetComponent <Image>().sprite  = rockBasah;
     rock1.GetComponent <Image>().sprite = rockBasah;
     rock2.GetComponent <Image>().sprite = rockBasah;
     rock3.GetComponent <Image>().sprite = rockBasah;
     rock4.GetComponent <Image>().sprite = rockBasah;
     rock5.GetComponent <Image>().sprite = rockBasah;
     rock6.GetComponent <Image>().sprite = rockBasah;
     rock7.GetComponent <Image>().sprite = rockBasah;
     rock8.GetComponent <Image>().sprite = rockBasah;
     rock9.GetComponent <Image>().sprite = rockBasah;
     Basah.SetActive(false);
     Lubang.SetActive(true);
 }
Exemplo n.º 2
0
 public void lubangiRockwool()
 {
     if (rockStatus == false)
     {
         rock.GetComponent <Image>().sprite  = rockhole;
         rock1.GetComponent <Image>().sprite = rockhole;
         rock2.GetComponent <Image>().sprite = rockhole;
         rock3.GetComponent <Image>().sprite = rockhole;
         rock4.GetComponent <Image>().sprite = rockhole;
         rock5.GetComponent <Image>().sprite = rockhole;
         rock6.GetComponent <Image>().sprite = rockhole;
         rock7.GetComponent <Image>().sprite = rockhole;
         rock8.GetComponent <Image>().sprite = rockhole;
         rock9.GetComponent <Image>().sprite = rockhole;
         Lubang.SetActive(false);
         Gelap.SetActive(true);
         rockStatus = true;
         reference.Child(id).Child("Inventory").Child("Tools").Child("Rockwool").Child("Lubang Status").SetValueAsync(rockStatus);
     }
 }