mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-06 15:48:48 +00:00
Rework how replicators are spawned to simplify Cog integration
- Replicators are now automatically spawned - Rework input management. - Add input shortcuts in the TimeScale window to change the time scale.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "CogAbilityReplicator.h"
|
||||
#include "CogDebugPluginSubsystem.h"
|
||||
#include "CogAbilitySubsystem.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class COGABILITY_API UCogAbilitySubsystem : public UCogDebugPluginSubsystem
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
|
||||
virtual void OnPlayerControllerReady(APlayerController* InController) override
|
||||
{
|
||||
if (InController != nullptr)
|
||||
{
|
||||
ACogAbilityReplicator::Spawn(InController);
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user