示例#1
0
    void SelectedBlockToPlace(int indexLocation)
    {
        Debug.Log("Selected " + gameBlocks[indexLocation].name + " In Level Editor");
        blockToPlace = gameBlocks[indexLocation];
        LevelEditor lvE = GameObject.FindObjectOfType <LevelEditor>();

        lvE.BlockSelectedChanged(blockToPlace);
        Block selectedBlock = gameBlocks[indexLocation];

        SwitchButtonColorsToBlock(selectedBlock);
    }