Lua向C#逻辑迁移 一期
创建了若干C#文件,替代对应lua文件
This commit is contained in:
		| @ -0,0 +1,17 @@ | ||||
| using UnrealSharp.Attributes; | ||||
| using UnrealSharp.BusyRabbit; | ||||
| using UnrealSharp.Engine; | ||||
|  | ||||
| namespace Level.GameSettings; | ||||
|  | ||||
| [UClass] | ||||
| public class ABusyLevelPlayerState : ALevelPlayerState | ||||
| { | ||||
|     protected override void BeginPlay() | ||||
|     { | ||||
|         base.BeginPlay(); | ||||
|         APlayerController pc = UGameplayStatics.GetPlayerController(0); | ||||
|         var role = CreateRoleRoster(pc) as APawn; | ||||
|         pc.Possess(role); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user