26 lines
814 B
Plaintext
26 lines
814 B
Plaintext
require "Script.Main.FilePath"
|
|
require "Script.Main.init"
|
|
require "Script.Main.Import"
|
|
require "Script.Net.NetPrefix"
|
|
|
|
GameFacade = {}
|
|
GameFacade.Instance = pm.Facade:getInstance("Game")
|
|
GameFacade.Instance:registerCommand(StartEvent.StartUp, StartUpCommand)
|
|
GameFacade.Instance:sendNotification(StartEvent.StartUp)
|
|
|
|
local TestStartGamePanel = class("TestStartGamePanel", BaseView)
|
|
|
|
function TestStartGamePanel:Init()
|
|
-- self.super:addButtonEvent("button1_start",self.buttonEvt)
|
|
self:MapSwitchHandler()
|
|
-- self.super:AddButtonEvent("StartBtn", function(go)
|
|
-- self:buttonEvt(go)
|
|
-- end)
|
|
end
|
|
|
|
-- start
|
|
local uiRoot = GameObject.Find("UIRoot")
|
|
local TestNetUI = GameObjectUtil.Instance:DeepFindChild(uiRoot, "TestNet")
|
|
local testStartGamePanel = TestStartGamePanel.new(TestNetUI)
|
|
testStartGamePanel:OnEnter()
|