Exemplo n.º 1
0
 public GameObject BuildFence(GameObject go, Vector2 loc, int layerIncrement)
 {
     go = Instantiate(go, loc, Quaternion.identity, transform);
     go.transform.localPosition = loc;
     go.GetComponent <SpriteRenderer>().sortingOrder = _nodeBehaviour.GetLayer() + layerIncrement;
     return(go);
 }