Beispiel #1
0
    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();
    }