Example #1
0
    public static string StringifyMe()
    {
        string toReturn = "";

        toReturn += ("Difficoltà: " + Difficulty + "\n");
        toReturn += ("Sequenza: " + MagicOrchestraUtils.StringifySequence(Sequence) + "\n");
        toReturn += ("Tempo proiezione: " + TimeInShowing + MagicOrchestraUtils.SecondsTextItalianSuffix(TimeInShowing) + "\n");
        toReturn += ("Modalità gesture: " + MagicOrchestraUtils.TrueFalseConverter(IsGestureMode) + "\n");
        if (!IsGestureMode)
        {
            toReturn += ("Tempo posizionamento: " + TimeInDetecting + MagicOrchestraUtils.SecondsTextItalianSuffix(TimeInDetecting) + "\n");
        }
        if (MagicOrchestraParameters.IsContext)
        {
            toReturn += ("Modalità con piano: " + MagicOrchestraUtils.TrueFalseConverter(ShowPlane) + "\n");
        }
        if (IsZenithOrthographic)
        {
            toReturn += ("Camera zenitale ortonormale\n");
        }
        else
        {
            toReturn += ("Camera zenitale prospettica\n");
        }
        toReturn += ("Suono di conferma: " + MagicOrchestraUtils.TrueFalseConverter(ConfirmSound) + "\n");
        return(toReturn);
    }
Example #2
0
    public static string StringifyMe()
    {
        string toReturn = "";

        toReturn += ("Sequenza: " + MagicOrchestraUtils.StringifySequence(Sequence) + "\n");
        toReturn += ("Difficoltà: " + Difficulty + "\n");
        toReturn += ("Modalità ordine inverso: " + MagicOrchestraUtils.TrueFalseConverter(IsReverse) + "\n");
        toReturn += ("Tempo proiezione frontale: " + TimeInShowing + MagicOrchestraUtils.SecondsTextItalianSuffix(TimeInShowing) + "\n");
        if (MagicOrchestraParameters.IsContext)
        {
            toReturn += ("Modalità aiuto: " + MagicOrchestraUtils.TrueFalseConverter(isHintMode) + "\n");

            if (IsHintMode)
            {
                toReturn += ("Modalità carte randomiche: " + MagicOrchestraUtils.TrueFalseConverter(isShuffle) + "\n");
            }
        }
        toReturn += ("Suono di conferma: " + MagicOrchestraUtils.TrueFalseConverter(ConfirmSound) + "\n");

        return(toReturn);
    }
    /* <summary>
     * Update is called once per frame
     * </summary>
     */
    void Update()
    {
        // Parsing value
        float value = gameObject.GetComponent <Slider>().value;

        value *= (highTime - lowTime);
        value += lowTime;
        float newValue = MagicOrchestraUtils.FiveMathRounder(value);

        // Texting value
        string toVisualize = newValue.ToString() + MagicOrchestraUtils.SecondsTextItalianSuffix(newValue);

        gameObject.transform.GetChild(gameObject.transform.childCount - 1).gameObject.GetComponent <Text>().text = toVisualize;

        // Saving value
        this.currentTime = newValue;


        // Correcting the slider
        newValue -= lowTime;
        newValue /= (highTime - lowTime);
        gameObject.GetComponent <Slider>().value = newValue;
    }