Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

share code with server #75

Closed
shanzhi666 opened this issue Aug 17, 2022 · 2 comments
Closed

share code with server #75

shanzhi666 opened this issue Aug 17, 2022 · 2 comments

Comments

@shanzhi666
Copy link

our project have a online mode, we sperate our server code out of untiy view code.
but fluid-BT uses GameObject as tree owner, i have to change all the owner type to implement this case.
can we change the owner type as a interface?

@ashblue
Copy link
Owner

ashblue commented Aug 17, 2022

Does Unity provide an interface for the GameObject? Last I checked they didn't provide something like that sadly. If they did provide one that would be a crazy easy change.

So the owner could be separated out to remove the Unity dependencies. But there would need to be an extra abstraction layer for the BT owner implementation with a generic and owner implementation override.

I'm guessing just passing null in for the GameObject won't fix it? Just wanna check to make sure.

@shanzhi666
Copy link
Author

thanks, i'll check this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants