|
|
@ -77,12 +77,12 @@ public class LogicTrayUI : LogicElementHolder |
|
|
|
QueueData lastData = readerQueue[readerQueue.Count - 1]; |
|
|
|
readerQueue.RemoveAt(readerQueue.Count - 1); |
|
|
|
|
|
|
|
lastData.block.blockReader.LogicChain = new List<LogicBlock>(lastData.reader.LogicChain); |
|
|
|
//lastData.block.blockReader.LogicChain = new List<LogicBlock>(lastData.reader.LogicChain);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
border.color = readerQueue[readerQueue.Count - 1].color; |
|
|
|
readerQueue[readerQueue.Count - 1].reader.LogicChain = new List<LogicBlock>(reader.LogicChain); |
|
|
|
// readerQueue[readerQueue.Count - 1].reader.LogicChain = new List<LogicBlock>(reader.LogicChain);
|
|
|
|
SetBlockReader(readerQueue[readerQueue.Count - 1].reader); |
|
|
|
|
|
|
|
|
|
|
@ -105,7 +105,7 @@ public class LogicTrayUI : LogicElementHolder |
|
|
|
foreach (LogicBlock element in reader.LogicChain) |
|
|
|
{ |
|
|
|
LogicElementUI elementUI = Instantiate(Prefab.gameObject, content).GetComponent<LogicElementUI>(); |
|
|
|
elementUI.Initialise(element, this); |
|
|
|
elementUI.Initialise(element, this,false); |
|
|
|
} |
|
|
|
|
|
|
|
//Add insertIndex object if needed
|
|
|
@ -210,7 +210,7 @@ public class LogicTrayUI : LogicElementHolder |
|
|
|
if (block == null || !block.isEditable) |
|
|
|
return; |
|
|
|
|
|
|
|
readerQueue.Add(new QueueData(block,reader,block.Color)); |
|
|
|
readerQueue.Add(new QueueData(block,block.blockReader,block.Color)); |
|
|
|
|
|
|
|
border.color = block.Color; |
|
|
|
SetBlockReader(block.blockReader); |
|
|
|