getMouseBusy() public method

public getMouseBusy ( ) : bool
return bool
Esempio n. 1
0
 void OnMouseOver()
 {
     if (!worldInfo.getMouseBusy() && Input.GetMouseButtonDown(0))
     {
         worldInfo.setMouseBusy();
         Instantiate(beerglass);
     }
 }
Esempio n. 2
0
 void OnMouseOver()
 {
     if (!busy && !worldInfo.getMouseBusy() && Input.GetMouseButtonDown(0))
     {
         worldInfo.setMouseBusy();
         busy = true;
         BarItem spawnedItem = Instantiate(barItem);
         Vector3 worldpos    = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0f));
         worldpos.z = 0f;
         spawnedItem.transform.position = worldpos;
         spawnedItem.setSpawner(this);
     }
 }