private void AssignReferences() { ButtonInstance = this.GetGraphicalUiElementByName("ButtonInstance") as Slotmachine.GumRuntimes.DefaultForms.ButtonRuntime; TextInstance = this.GetGraphicalUiElementByName("TextInstance") as Slotmachine.GumRuntimes.TextRuntime; if (tryCreateFormsObject) { FormsControlAsObject = new Slotmachine.FormsControls.Screens.GameScreenGumForms(this); } }
public override void Initialize(bool addToManagers) { LoadStaticContent(ContentManagerName); Slot1Instance = new Slotmachine.Entities.Slot1(ContentManagerName, false); Slot1Instance.Name = "Slot1Instance"; Slot2Instance = new Slotmachine.Entities.Slot2(ContentManagerName, false); Slot2Instance.Name = "Slot2Instance"; Slot3Instance = new Slotmachine.Entities.Slot3(ContentManagerName, false); Slot3Instance.Name = "Slot3Instance"; Forms = new Slotmachine.FormsControls.Screens.GameScreenGumForms(GameScreenGum); PostInitialize(); base.Initialize(addToManagers); if (addToManagers) { AddToManagers(); } }