Example #1
0
    // Update is called once per frame
    void Update()
    {
        if (pressed && this.gameObject.name == "Right")
        {
            Script.PressRight();
        }

        if (pressed && this.gameObject.name == "Left")
        {
            Script.PressLeft();
        }
    }