Exemplo n.º 1
0
 void AttachTowerComponentToPointer(ResourceController resourceController, ResourceCost resourceCost)
 {
     if (resourceController.CanAfford(resourceCost))
     {
         ComponentPlacer placer = cam.GetComponent <ComponentPlacer> ();
         placer.towerComponent    = towerComponent;
         placer.componentSelected = true;
         placer.AttachToPointer();
     }
     else
     {
         Debug.Log("Insufficient Resources");
     }
 }