예제 #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
    }
예제 #2
0
    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
 void OnApplicationQuit()
 {
     RFIB.StopReader();
 }
    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
    }