Ejemplo n.º 1
0
 private void FixedUpdate()
 {
     if (IsDragging)
     {
         if (IsHitDetected())
         {
             placeableScript.enabled = true;
             placeableScript.OnPlacementStart();
         }
         else
         {
             placeableScript.OnPlacementStop();
             placeableScript.enabled = false;
         }
     }
     else
     {
         placeableScript.OnPlacementStop();
         placeableScript.enabled = false;
     }
 }