public void addBarrack(Player owner) { Barrack bar = Instantiate(barrackPref); bar.transform.SetParent(gameObject.transform); bar.transform.position = gameObject.transform.position; bar.owner = PlayerHandler.instance.currentPlayer; bar.inic(); }
public void addBarrack(Player owner) { Barrack bar = Instantiate(barrackPref); bar.transform.SetParent(gameObject.transform); bar.transform.position = gameObject.transform.position; bar.owner = PlayerHandler.instance.currentPlayer; bar.inic(); }