Esempio n. 1
0
 private void ConverseTargetBlock(Block block, Stack <Command> tickCommands)
 {
     if (m_originalEntityType == block.entityType)
     {
         var conversionCommand = new ConversionCommand(m_logicGameManager, block, m_targetEntityType);
         conversionCommand.Perform();
         if (tickCommands != null)
         {
             tickCommands.Push(conversionCommand);
         }
     }
 }
Esempio n. 2
0
        private void ConverseTargetBlock(Block block, Stack <Command> tickCommands)
        {
            var blockEntityCategory = m_logicGameManager.GameManager.gameConfig.GetEntityConfig(block.entityType).category;

            if (m_originalEntityCategory == blockEntityCategory)
            {
                var conversionCommand = new ConversionCommand(m_logicGameManager, block, m_targetEntityType);
                conversionCommand.Perform();
                if (tickCommands != null)
                {
                    tickCommands.Push(conversionCommand);
                }
            }
        }