|
@@ -288,7 +288,7 @@ If you use the jme SDK you can add the following template to make adding BaseApp
|
|
|
* Rename this newly created copy to "`New BaseAppState`".
|
|
|
* Select btn:[Open in Editor].
|
|
|
* Select all text in the open file and delete it.
|
|
|
-* Copy and paste the code below into the file.
|
|
|
+* Copy and paste the code below into the file and save when finished.
|
|
|
|
|
|
----
|
|
|
<#assign licenseFirst = "/*">
|
|
@@ -327,7 +327,8 @@ public class ${name} extends BaseAppState {
|
|
|
//onEnable()/onDisable() can be used for managing things that should
|
|
|
//only exist while the state is enabled. Prime examples would be scene
|
|
|
//graph attachment or input listener attachment.
|
|
|
- @Override protected void onEnable() {
|
|
|
+ @Override
|
|
|
+ protected void onEnable() {
|
|
|
//Called when the state is fully enabled, ie: is attached and
|
|
|
//isEnabled() is true or when the setEnabled() status changes after the
|
|
|
//state is attached.
|