public Movement() { stuk = new Stuk(); m_GameEngine = GameEngine.GetInstance(); Puzzeltje = new Button(StartClick, "This is a stupid puzzle", 1000, 340, 200, 100); Puzzeltje.SetActive(false); }
static void Main(string[] args) { Random random = new Random(); int kleurID = random.Next(0, Enum.GetNames(typeof(Kleur)).Length); int stukID = random.Next(0, Enum.GetNames(typeof(Stuk)).Length); Kleur kleur = (Kleur)kleurID; Stuk stuk = (Stuk)stukID; Console.WriteLine($"{kleur} {stuk}"); }