broken
This commit is contained in:
15
Runtime/FPPKit/Code/FPPPlayerControllerAsset.cs
Normal file
15
Runtime/FPPKit/Code/FPPPlayerControllerAsset.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user