private void CreateOkButton()
        {
            var button    = _buttonFactory.CreateAtCenter("okButton", GoToMenu);
            var transform = button.Get <Transform>();

            transform.Position = Vector2.Add(transform.Position, new Vector2(0, 180));
        }
Example #2
0
 private void SetupWorld()
 {
     _imageFactory.Create("background", Color.White);
     _buttonFactory.CreateAtCenter("playButton", Play);
 }