refactor: behaviour factory universe object parameter removed
This commit is contained in:
@@ -36,7 +36,10 @@ public class BehaviourController : BaseEntity, IBehaviourController
|
||||
}
|
||||
|
||||
public T AddBehaviour<T>(params object?[]? args) where T : class, IBehaviour
|
||||
=> AddBehaviour(Factory.BehaviourFactory.Instantiate<T>(_universeObject, args));
|
||||
{
|
||||
T behaviour = Factory.BehaviourFactory.Instantiate<T>(args);
|
||||
return AddBehaviour(behaviour);
|
||||
}
|
||||
|
||||
public T? GetBehaviour<T>()
|
||||
{
|
||||
|
Reference in New Issue
Block a user