Beispiel #1
0
 void Update()
 {
     if (isrockclicked)
     {
         loading.GetComponent <Slider>().value -= Time.deltaTime;
         if (loading.GetComponent <Slider>().value <= 0)
         {
             Destroy(gameObject);
             cursorcontroller.enablenormal();
             inventory.rockcounts += 10;
             isrockclicked         = false;
         }
     }
 }
 public void OnMouseExit()
 {
     cursorcontroller.enablenormal();
 }
Beispiel #3
0
 public void OnMouseExit()
 {
     cursorcontroller.enablenormal();
     enemyinstruction.SetActive(false);
 }