Beispiel #1
0
    void Setup()
    {
        if (mathType == MathType.Plus)
        {
            normalSoundName  = "UI/Add";
            fastSoundName    = "UI/AddFast";
            fastestSoundName = "UI/AddFastest";
            contentContainer.AddChild(mathSprite = new MathSprite("Icons/Plus"));
        }
        else
        {
            normalSoundName  = "UI/Subtract";
            fastSoundName    = "UI/SubtractFast";
            fastestSoundName = "UI/SubtractFastest";
            contentContainer.AddChild(mathSprite = new MathSprite("Icons/Minus"));
        }

        mathSprite.color = Color.black;
    }
Beispiel #2
0
    void Setup()
    {
        if(mathType == MathType.Plus)
        {
            normalSoundName = "UI/Add";
            fastSoundName = "UI/AddFast";
            fastestSoundName = "UI/AddFastest";
            contentContainer.AddChild(mathSprite = new MathSprite("Icons/Plus"));
        }
        else
        {
            normalSoundName = "UI/Subtract";
            fastSoundName = "UI/SubtractFast";
            fastestSoundName = "UI/SubtractFastest";
            contentContainer.AddChild(mathSprite = new MathSprite("Icons/Minus"));
        }

        mathSprite.color = Color.black;
    }