Esempio n. 1
0
        public string getCommandLine()
        {
            string comm  = command.ToString();
            string direc = direction.ToString();

            return(comm + "_" + steps + "_" + direc);
        }
Esempio n. 2
0
    void UpdateShaderKeywords()
    {
        mShaderKeywords[0] = mDir.ToString();
        mShaderKeywords[1] = mStep.ToString();
        mShaderKeywords[2] = mEnableBlur ? "ENABLEBLUR" : "__";
        mShaderKeywords[3] = mGuassBlur ? "GUASSBLUR" : "__";

        mMaterial.shaderKeywords = mShaderKeywords;
    }
Esempio n. 3
0
 public override string ToString()
 {
     return(string.Format("[{0},{1}] : {2}", tileRow, tileCell, Direction.ToString()));
 }
Esempio n. 4
0
        //
        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);
            }
        }