public static void ReorganiseSuitableBlocks(BlockSO lastUsedBlock_data) { UI.suitableBlocksOrganised.Remove(lastUsedBlock_data); UI.suitableBlocksOrganised.Insert(0, lastUsedBlock_data); if (UI.suitableBlocksOrganised[0] != lastUsedBlock_data) { Debug.LogError("Hups u reorganizace bloku se první item listu neshoduje s posledním použitým blokem něco je vážně špatně..."); } }
public SymBlock CreateNewSymBlock(Vector3 position, Vector3 rotation, BlockSO BlockData, BlockChecker lastActiveChecker) { _newBlock = (SymBlock)BlockFactory.CreateSymBlock(position, rotation, BlockData, lastActiveChecker); var newBlock = (SymBlock)_newBlock; var bConstructor = BlockFactory.BlockConstructor((SymBlock)newBlock); bool wasBlockConstructed = newBlock.ConstructBlock(bConstructor); if (!wasBlockConstructed) { Debug.LogError("Symetricý blok se nepodařilo vytvořit!"); } newBlock.SetBlockOrientation(); newBlock.ConstructBlockPost(bConstructor); return((SymBlock)_newBlock); }
// Symetrický blok public static IBlock CreateSymBlock(Vector3 position, Vector3 rotation, BlockSO BlockData, BlockChecker baseChecker) { return(new SymBlock(position, rotation, BlockData, baseChecker)); }
// Maybe (Byl by FOCUS 2.) internal static void CheckerWindowState(BlockSO b_data = null) { }