Hey guys,
I have a little beginner question:
I have the following classes:
- mygame.Main and
- mygame.player.Player
Main extends SimpleApplication. My player is just a little box, but i want to give it a material.
I’m using this code for that:
[java]Material mat1 = new Material(assetManager, “Common/MatDefs/Misc/SolidColor.j3md”);[/java]
Now, how can i access the assetManager from my Player class, which doesn’t extend SimpleApplictaion?
I hope you can understand my problem.
monsterbit