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; }
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; }