15 lines
503 B
C#
15 lines
503 B
C#
using RebootKit.Engine.Foundation;
|
|
using UnityEngine;
|
|
|
|
namespace RebootKit.FPPKit {
|
|
[CreateAssetMenu(menuName = FPPConsts.k_AddComponentMenu + "Player Controller")]
|
|
public class FPPPlayerControllerAsset : ControllerAsset {
|
|
[SerializeField] FPPPlayerController.Config m_Config;
|
|
|
|
public override IController Create(DIContext context) {
|
|
FPPPlayerController instance = new(m_Config);
|
|
context.Inject(instance);
|
|
return instance;
|
|
}
|
|
}
|
|
} |