Exemplo n.º 1
0
    public void SetWoProperties(GameObject g)
    {
        WorldObject wo = g.GetComponent <WorldObject> ();

        wo.SetPlayer(this);
        playerList.Add(wo);
        statistics.AddCreated(wo);
        if (wo is Building)
        {
            wo.transform.SetParent(buildings);
        }
        else
        {
            wo.transform.SetParent(units);
        }
    }