Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var units = new Array();
- function buildCamp(positionX : int,positionY : int,unitId : int){
- Instantiate (prefabCamp, Vector3(positionX ,positionY,-1), Quaternion.Euler(0.0,0.0,0.0));
- for(unit in units){
- unitScript = unit.GetComponent(scriptUnit);
- if(unitScript.id == unitId){
- }
- }
Add Comment
Please, Sign In to add comment