示例#1
0
    private void KeyPressed()
    {
        GetKey("1", "8940 0000 9999 0302 0001", "8940 0000 7101 0101 0001");
        GetKey("2", "8940 0000 7101 0103 0001", "8940 0000 7601 0101 0001");

        GetKey("4", "8940 0000 9999 0502 0001", "8940 0000 7201 0101 0001");
        GetKey("5", "8940 0000 7201 0103 0001", "8940 0000 7601 0101 0001");

        #region Information
        if (Input.GetKeyUp("="))
        {
            RFIB.StopReader();
        }
        if (Input.GetKeyUp("["))
        {
            RFIB.printStackedOrders3D();
        }
        if (Input.GetKeyUp(";"))
        {
            RFIB.printStackedOrders();
        }
        if (Input.GetKeyUp("."))
        {
            Debug.Log("====g====");
        }

        #endregion
    }
    private void KeyPressed()
    {
        if (Input.GetKeyUp("1"))
        {
            tmpFlag1 = true;
        }
        if (Input.GetKeyUp("2"))
        {
            tmpFlag1 = false;
        }
        if (tmpFlag1)
        {
            RFIB._Testing_AddTestingTemporarilyTag("8940 0000 9999 0702 0001", "8940 0000 7101 0101 0001");
        }

        if (Input.GetKeyUp("3"))
        {
            tmpFlag2 = true;
        }
        if (Input.GetKeyUp("4"))
        {
            tmpFlag2 = false;
        }
        if (tmpFlag2)
        {
            RFIB._Testing_AddTestingTemporarilyTag("8940 0000 9999 0503 0001", "8940 0000 7103 0101 0001");
        }

        #region Information
        if (Input.GetKeyUp("="))
        {
            RFIB.StopReader();
        }
        if (Input.GetKeyUp("["))
        {
            RFIB.printStackedOrders3D();
        }
        if (Input.GetKeyUp(";"))
        {
            RFIB.printStackedOrders();
        }
        if (Input.GetKeyUp("."))
        {
            Debug.Log("====g====");
            Debug.Log("BlcokID: " + GetBlockInfoXYZ(0, 4, 2, "BlcokID"));
            Debug.Log("SurfaceID: " + GetBlockInfoXYZ(0, 1, 1, "SurfaceID"));
            Debug.Log("StackWay: " + GetBlockInfoXYZ(0, 1, 1, "StackWay"));
            Debug.Log("BlockIDType: " + GetBlockInfoXYZ(0, 1, 1, "BlockIDType"));
        }

        #endregion
    }
示例#3
0
    public void keyPressed()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            print("StartToBuild...");
            RFIB.startToBuild();
            RFIB.printNoiseIDs();

            autoRun = false;

            foreach (string xx in PreStackOrders)
            {
                string[] xxs = xx.Split(',');
                //RFIB._Testing_AddHoldingTag(xxs[0], xxs[1]);
                RFIB._Testing_AddTestingTemporarilyTag(xxs[0], xxs[1]);
            }
            //RFIB._Testing_AddHoldingTag("7428 0000 9999 0302 0003", "7428 0000 9101 1101 0001");
        }        //920136

        if (Input.GetKeyDown("d"))
        {
            PreStackOrdersSimIndex++;
            Debug.Log(PreStackOrdersSimIndex);
        }
        if (Input.GetKey("r"))
        {
            RFIB._Testing_AddHoldingTag("7428 0000 9999 0102 0001", "7428 0000 9201 3601 0001");
        }
        if (Input.GetKey("e"))
        {
            RFIB._Testing_AddTestingTemporarilyTag("7428 0000 9999 0102 0001", "7428 0000 9201 3601 0001");
        }

        if (Input.GetKey("e"))
        {
            RFIB.StopReader();
        }

        if (Input.GetKeyDown("o"))
        {
            RFIB.printStackedOrders3D();
        }
        if (Input.GetKeyDown("p"))
        {
            RFIB.printStackedOrders();
        }
    }
    public void KeyPressed()
    {
        if (Input.GetKeyUp("a"))
        {
            tmpFlag1 = true;
        }
        if (Input.GetKeyUp("s"))
        {
            tmpFlag1 = false;
        }
        if (tmpFlag1)
        {
            RFIB._Testing_AddTestingTemporarilyTag("8940 0000 9999 0201 0001", "8940 0000 8001 0301 0001");
        }

        if (Input.GetKeyUp("d"))
        {
            tmpFlag2 = true;
        }
        if (Input.GetKeyUp("f"))
        {
            tmpFlag2 = false;
        }
        if (tmpFlag2)
        {
            RFIB._Testing_AddTestingTemporarilyTag("8940 0000 9999 0401 0001", "8940 0000 7101 0101 0001");
        }

        if (Input.GetKeyUp("g"))
        {
            tmpFlag3 = true;
        }
        if (Input.GetKeyUp("h"))
        {
            tmpFlag3 = false;
        }
        if (tmpFlag3)
        {
            RFIB._Testing_AddTestingTemporarilyTag("8940 0000 9999 0601 0001", "8940 0000 7201 0201 0001");
        }

        if (Input.GetKeyUp("z"))
        {
            tmpFlag4 = true;
        }
        if (Input.GetKeyUp("x"))
        {
            tmpFlag4 = false;
        }
        if (tmpFlag4)
        {
            RFIB._Testing_AddTestingTemporarilyTag("8940 0000 8001 0303 0001", "8940 0000 9001 0401 0001");
        }

        #region Information
        if (Input.GetKeyUp("="))
        {
            RFIB.StopReader();
        }
        if (Input.GetKeyUp("["))
        {
            RFIB.printStackedOrders3D();
        }
        if (Input.GetKeyUp(";"))
        {
            RFIB.printStackedOrders();
        }
        if (Input.GetKeyUp("."))
        {
            Debug.Log("====g====");
            Debug.Log("BlcokID: " + GetBlockInfoXYZ(0, 4, 2, "BlcokID"));
            Debug.Log("SurfaceID: " + GetBlockInfoXYZ(0, 1, 1, "SurfaceID"));
            Debug.Log("StackWay: " + GetBlockInfoXYZ(0, 1, 1, "StackWay"));
            Debug.Log("BlockIDType: " + GetBlockInfoXYZ(0, 1, 1, "BlockIDType"));
        }

        #endregion
    }