예제 #1
0
    void Start()
    {
        IntVector2 pos = GetPosition();

        if (manager.GetNode(pos).GetBuild() == null)
        {
            manager.AddBuildInMap(pos.x, pos.y, this);
        }

        render.sortingOrder = manager.SetSortingLayer(transform.position.y);

        if (estructura != null)
        {
            estructura.OnStart();
        }
    }