Game.Node.cs 420 B

123456789101112131415161718
  1. using TBL.GodotSharp.Ui.AutoAdaption;
  2. namespace TBL.GodotSharp
  3. {
  4. public partial class Game
  5. {
  6. public AutoAdaptionController AutoAdaptionController { get; protected set; }
  7. public override void _Ready()
  8. {
  9. AddChild(AutoAdaptionController = new AutoAdaptionController());
  10. OnReady();
  11. }
  12. protected abstract void OnReady();
  13. }
  14. }