Could someone help me script a unit sending script like in the game Phage Wars?
I know how to most of the rest but how would I do the dragging to send units?
NOTE: I don’t want the units to move anywhere… only to some specific buildings…
So how would I add a script to make the dragging only work between buildings not just anywhere on the map?
Link to game: Phage Wars - Play on Armor Games
Thanks! 
Ooo, 22 minute bump.
Take a look at the Physics.Raycast routines and mouse handling methods in Unity to track when and where the user clicks. Use the MonoBehaviour.Instantiate method to make copies of your little soldier minions when they attack. Beyond that, you’ll have to brush up your programming to develop how to actually handle your game logic.
Currently Checking out the raycast stuff, Thanks.
But one more thing, how can you block out releasing on random areas?
How can you only allow the user to release on buildings?
I don’t think there’s anything to help with. It sounds like what you’re asking for is less Unity related and more game-logic related specifically to your game. Like I said, develop your programming skills (a tonne of tutorials out there) and the answers to such questions will come naturally to you and your specific needs.
use layers and/or tags to test your raycast:
var useLayer : LayerMask;
function Update () {
var ray = playerCamera.ScreenPointToRay (Input.mousePosition);
var hit : RaycastHit;
if (Physics.Raycast(ray, hit, 100, useLayer.value))
{
if (hit.transform.CompareTag ("MyBuildingTag"))
{ //do stuff here
}
}