public override void Enter() { GameObject startScreenObject = UIManager.GetInstance().InstantiateForegroundUI(UIManager.GetInstance().StartScreenUI); _startScreenUI = startScreenObject.GetComponent<StartScreenUI>(); _startScreenUI.Init(); _startScreenUI.PlayPressed += OnPlayButtonPressed; _startScreenUI.HowToPlayPressed += OnHowToPlayPressed; }
public void Initialize() { uint spriteCapacity = 500; uint drawHelpersCapacity = 400; graphics = new GraphicsContext(); StartUpMethods.SetUpDirector(spriteCapacity, drawHelpersCapacity, graphics); var uitransition = new CrossFadeTransition(); Start = new StartScreen(); startui = new StartScreenUI(); startui.Transition = uitransition; Director.Instance.RunWithScene(Start, true); StartUpMethods.SetUpUI(graphics, startui); }