Exemplo n.º 1
0
 public MenuModel(IConsole window, string title, int current, int height, int width, MenuItem[] menuItems, MenuTheme theme)
 {
     Window    = window;
     Title     = title;
     Current   = current;
     Height    = height;
     Width     = width;
     MenuItems = menuItems;
     Theme     = theme;
 }
 void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instance = this;
     }
     DontDestroyOnLoad(this.gameObject);
 }