Esempio n. 1
0
    protected override bool HandleMouse()
    {
        if (!PD.usingMouse)
        {
            return(false);
        }
        HandleCharacterClick();
        Vector3 inTitle = clicker.getPositionInGameObject(title);

        if (inTitle.z == 1 && Mathf.Abs(inTitle.x) > 1.5f && Mathf.Abs(inTitle.y) < 0.3f && clicker.isDown())
        {
            if (PD.GetSaveData().savedOptions["beatafuckingballoon"] == 1)
            {
                PD.p1Char = (PersistData.C)Random.Range(0, 10);
                PD.MoveToBalloonBattle();
            }
        }
        int initv = GetClickSelection();

        if (initv < 0)
        {
            return(false);
        }
        int v = 9 - initv;
        int x = v % 2, y = (v - x) / 2;

        if (x == 0)
        {
            x = 1;
        }
        else
        {
            x = 0;
        }
        cursor.setX(x); cursor.setY(y);
        if (clicker.isDown())
        {
            ConfirmSelectionAndAdvance(initv);
        }
        return(false);
    }