mirror of https://github.com/axmolengine/axmol.git
change clear color in onEnter (#17564)
This commit is contained in:
parent
ab9104f3ce
commit
1366ea1f97
|
@ -1103,7 +1103,6 @@ var FogTestDemo = Camera3DTestDemo.extend({
|
|||
|
||||
ctor:function(){
|
||||
this._super();
|
||||
cc.director.setClearColor(cc.color(128, 128, 128));
|
||||
|
||||
cc.eventManager.addListener({
|
||||
event:cc.EventListener.TOUCH_ALL_AT_ONCE,
|
||||
|
@ -1191,6 +1190,11 @@ var FogTestDemo = Camera3DTestDemo.extend({
|
|||
layer3D.setCameraMask(2);
|
||||
},
|
||||
|
||||
onEnter: function() {
|
||||
this._super();
|
||||
cc.director.setClearColor(cc.color(128, 128, 128));
|
||||
},
|
||||
|
||||
onExit:function(){
|
||||
this._super();
|
||||
cc.director.setClearColor(cc.color(0, 0, 0));
|
||||
|
|
Loading…
Reference in New Issue