Guest User

Untitled

a guest
Jun 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var units = new Array();
  2.  
  3. function buildCamp(positionX : int,positionY : int,unitId : int){
  4. Instantiate (prefabCamp, Vector3(positionX ,positionY,-1), Quaternion.Euler(0.0,0.0,0.0));
  5. for(unit in units){
  6. unitScript = unit.GetComponent(scriptUnit);
  7. if(unitScript.id == unitId){
  8.  
  9. }
  10. }
Add Comment
Please, Sign In to add comment