網易洞見丨洞見APP——Unity列印資訊、點選監聽事件、退出應用
阿新 • • 發佈:2018-12-13
洞見APP——Unity列印資訊
log("lua call 6666")
Insight.Debug.Log("Start end")
點選監聽事件、退出應用
require "Common/define" local _SkodeUIController = {}; function _SkodeUIController:New( game_object ) if self ~= _SkodeUIController then return nil, "First argument must be self." end local new_instance = setmetatable( {} , { __metatable = {}, __index = _SkodeUIController } ); new_instance.transform = game_object.transform; new_instance.game_object = game_object.transform.gameObject; return new_instance; end function _SkodeUIController:Start() self.closebtn = GameObject.Find("UICanvas/closebtn") self.closebtn:GetComponent("Button"):AddClick(_SkodeUIController.Onclosebtn) end function _SkodeUIController:Onclosebtn() panelMgr:Exit() end return _SkodeUIController;