18 lines
		
	
	
		
			412 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			412 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 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);
 | |
|     }
 | |
| }
 |