Skip to content

Commit

Permalink
使用print
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoqingqing committed Aug 5, 2020
1 parent 22d3d58 commit 4727c3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions KSFramework/Product/Lua/UI/Billboard/Billboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local UIBillboard = {}
extends(UIBillboard, UIBase)

function UIBillboard:OnInit(controller)
Log.Info("================================ UIBillboard:OnInit ============================")
print("================================ UIBillboard:OnInit ============================")
self.Controller = controller
if not self.txtTitle then
self.txtTitle = self:GetUIText('txtTitle')
Expand All @@ -19,7 +19,7 @@ function UIBillboard:OnInit(controller)
end

function UIBillboard:OnOpen()
Log.Info("================================ UIBillboard:OnOpen ============================")
print("================================ UIBillboard:OnOpen ============================")
local rand
--rand = Cookie.Get('UIBillboard.RandomNumber')
--if not rand then
Expand All @@ -32,6 +32,6 @@ function UIBillboard:OnOpen()
end

function UIBillboard:OnClose()
Log.Info("================================ UIBillboard:OnClose ============================")
print("================================ UIBillboard:OnClose ============================")
end
return UIBillboard
6 changes: 3 additions & 3 deletions KSFramework/Product/Lua/UI/Login/Login.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local scenes = { "Scene/Scene1001/Scene1001.unity", "Scene/Scene1002/Scene1002.u
-- controller also pass to OnInit function
function UILogin:OnInit(controller)
self.sceneIndex = 1
Log.Info("================================ UILogin:OnInit ============================")
print("================================ UILogin:OnInit ============================")

---多语言示例,从语言表中读取
-- self.LoginText from LuaOutlet
Expand Down Expand Up @@ -52,7 +52,7 @@ function UILogin:OnOpen(num1)

if AppSettings then
using("AppSettings") -- namespace all
Log.Info("================================ Read settings throught Lua ============================")
print("================================ Read settings throught Lua ============================")
for config in foreach(GameConfigSettings.GetAll()) do
print(string.format("Lua Read Setting, Id: %s, Value: %s", config.Id, config.Value))
end
Expand All @@ -68,7 +68,7 @@ function UILogin:OnOpen(num1)
openCount = openCount + 1
Cookie.Set('UILogin.OpenCount', openCount)
self:TestJson()
Log.Info('Test cookie, Reload UI use (Ctrl+Alt+Shift+R)... UI Open Count: ' .. tostring(openCount))
print('Test cookie, Reload UI use (Ctrl+Alt+Shift+R)... UI Open Count: ' .. tostring(openCount))
end

function UILogin:OnClose()
Expand Down

0 comments on commit 4727c3e

Please sign in to comment.