Universal selection

Project: Armament
Role: Game Programmer
In Progress: 70.79 Cpl Robert Peric Game Programmer
Start Date: 5/16/2018 14:05
End Date: 5/30/2018 14:05
Objective
We need one script to select units or buildings.  Currently, we have two that function independently.  We want one.  This script should highlight the unit that is selected.  Using the 2x2 pixel sprite a rectangle should apear when the mouse button is dragged.  This rectangle should have the same angle as the camera regardless of the direction its is pointing.  The right mouse button will select the unit and the left mouse button will deselect.  We need both buildings and units selectable
Universal selection

Assets
No Public Asset Available

Complete Task
1.50 HR.
Played with scripts and reading online to try to find best way to put everything into single script capable of dealing with selecting demands. For now i think il go with script attached to empty game object rather then one attached to every unit and building.


Liaison
No Public Messages Available