Beispiel #1
0
    public void getNextItem()
    {
        if (lastItem < (items.Length - 1))
        {
            panelCheckList.OnItemPlaced(lastItem);

            lastItem++;
            currentItem = items[lastItem];
            currentItem.enableItem();
        }
        else
        {
            //scene is done, do what ever you need to do
            panelCheckList.OnItemPlaced(lastItem);
            panelCheckList.OnFinished();
        }
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        //initialize the scene
        //(all items are in the scene on start (maybe not the best solution, but should work out for the prototype))
        foreach (ItemControl item in items)
        {
            item.SetGameMode(gamemode);
            item.SetTargetLockRadius(GlobalItemLockRadius);
            item.disableItem();
        }

        currentItem = items[0];

        currentItem.enableItem();
        lastItem = 0;

        panelCheckList.SetTableManager(this);

        //ToggleGoalVisibility();
    }