public void AddPair(BottomWireEdge socket) { if (CheckValidPair(socket)) { m_gameState.AddWire(); } }
public void RemovePair(BottomWireEdge socket) { if (CheckValidPair(socket)) { m_gameState.RemoveWire(); } }
public bool CheckValidPair(BottomWireEdge socket) { foreach (var combination in m_gameState.m_combinations) { if (combination.topColor == socket.topEdge.socketColor) { if (combination.bottomColor == socket.socketColor) { return(true); } } } return(false); }
public void RemovePair(BottomWireEdge socket) { m_plaque.RemovePair(socket); }
public void AddPair(BottomWireEdge socket) { m_plaque.AddPair(socket); }