Example #1
0
 void OnUpdate()
 {
     if (isLive)
     {
         if (Input.GetMouseButtonDown(0))
         {
             leftClick.Play();
             mouseInfluence.StartVisible();
             if (curBeacon != null)
             {
                 Destroy(curBeacon);
             }
             curBeacon      = Instantiate(pBeacon, rbMouse.position, rbMouse.rotation, this.transform);
             curBeacon.name = "Beacon";
         }
     }
 }