开始接入厨房
This commit is contained in:
		| @ -4,7 +4,7 @@ local GameplayStatics = import("GameplayStatics") | ||||
|  | ||||
| function SettingPanel:OnInitialized() | ||||
|     self.BtnContinue.OnClicked:Add(function() self:BackToGame() end) | ||||
|     self.BtnExitLevel.OnClicked:Add(function() end) | ||||
|     self.BtnExitLevel.OnClicked:Add(function() self:BackHomeland() end) | ||||
|     self.BtnExitGame.OnClicked:Add(function() self:ExitGame() end) | ||||
|     self.BtnClose.OnClicked:Add(function() self:BackToGame() end) | ||||
| end | ||||
| @ -19,6 +19,10 @@ function SettingPanel:BackToGame() | ||||
|     UIUtils.CloseWidget(self) | ||||
| end | ||||
|  | ||||
| function SettingPanel:BackHomeland() | ||||
|     GameplayStatics.OpenLevel(self, "HomeLand", false, "") | ||||
| end | ||||
|  | ||||
| function SettingPanel:ExitGame() | ||||
|     local pc = GameplayStatics.GetPlayerController(self, 0) | ||||
|     pc:QuitGame() | ||||
|  | ||||
		Reference in New Issue
	
	Block a user