public string getCommandLine() { string comm = command.ToString(); string direc = direction.ToString(); return(comm + "_" + steps + "_" + direc); }
void UpdateShaderKeywords() { mShaderKeywords[0] = mDir.ToString(); mShaderKeywords[1] = mStep.ToString(); mShaderKeywords[2] = mEnableBlur ? "ENABLEBLUR" : "__"; mShaderKeywords[3] = mGuassBlur ? "GUASSBLUR" : "__"; mMaterial.shaderKeywords = mShaderKeywords; }
public override string ToString() { return(string.Format("[{0},{1}] : {2}", tileRow, tileCell, Direction.ToString())); }
// private void ChangeDirectionState(DIRECTION direction) { File.WriteAllText(GPIO_PATH + "gpio" + m_PinId.ToString() + "/direction", direction.ToString().ToLowerInvariant()); //start up the thread if (direction == DIRECTION.IN) { m_QueryInThread = new Thread(ReadPinThread); m_QueryInThread.Start(); } else if (m_PinDiection == DIRECTION.IN && direction != DIRECTION.IN) { m_StopQueryThread = true; //Stop our thread while (m_StopQueryThread == true) { Thread.Sleep(2); //wait for the thread to stop... } } m_PinDiection = direction; if (DirectionChanged != null) { DirectionChanged(m_PinId, m_PinDiection); } }