Explorar el Código

Update application_states.adoc

mitm001 hace 8 años
padre
commit
e12831f41e
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/docs/asciidoc/jme3/advanced/application_states.adoc

+ 3 - 2
src/docs/asciidoc/jme3/advanced/application_states.adoc

@@ -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.