public virtual void AddDrawable(Drawable drawable, int index) { drawable.drawableScreen = this; drawable.LoadContent(); CollectionUtils.Add(drawables, drawable); for (int i = 0; i < drawables.Count; i++) { if (i == index) { drawables[i]._enabled = true; } else { drawables[i]._enabled = false; } } }
public virtual void AddDrawable(Drawable drawable, int index) { drawable.drawableScreen = this; drawable.LoadContent(); CollectionUtils.Add(drawables, drawable); for (int i = 0; i < drawables.Count; i++) { if (i == index) { drawables[i]._enabled = true; } else { drawables[i]._enabled = false; } } }
public virtual void AddDrawable(Drawable drawable) { drawable.drawableScreen = this; drawable.LoadContent(); CollectionUtils.Add(drawables, drawable); }
public virtual void AddDrawable(Drawable drawable) { drawable.drawableScreen = this; drawable.LoadContent(); CollectionUtils.Add(drawables, drawable); }