public Vector2 GetRandomCollect() { ObjectStatic selected = Items.dotsAndPills[new Random().Next(0, Items.dotsAndPills.Count)]; if (selected != null) { return(selected.position); } return(new Vector2(-1, -1)); }
public static void PopPillorDot(ObjectStatic target) { dotsAndPills.Remove(target); objMovList.Remove(target); checkEndGame(); }