Commit dd15fa4a authored by rockyl's avatar rockyl

返回值增加void

parent cd11170b
......@@ -38,7 +38,7 @@ export class Component extends HashObject {
if (this._enabled !== value) {
this._enabled = value;
if (this.entity && this.entity.isActive) {
if(!EngineConfig.editorMode){
if (!EngineConfig.editorMode) {
if (this._enabled) {
this.onEnable();
} else {
......@@ -55,7 +55,7 @@ export class Component extends HashObject {
*/
_setup(entity: Entity) {
this.entity = entity;
if(!EngineConfig.editorMode){
if (!EngineConfig.editorMode) {
this.onCreate();
}
}
......@@ -65,7 +65,7 @@ export class Component extends HashObject {
*/
_unSetup() {
this.entity = null;
if(!EngineConfig.editorMode){
if (!EngineConfig.editorMode) {
this.onDestroy();
}
}
......@@ -77,8 +77,8 @@ export class Component extends HashObject {
}
$onAwake(){
if(!EngineConfig.editorMode){
$onAwake() {
if (!EngineConfig.editorMode) {
this.onAwake();
}
}
......@@ -117,7 +117,7 @@ export class Component extends HashObject {
this.onEditorUpdate(t);
}
$afterUpdate(){
$afterUpdate() {
this.afterUpdate();
}
......@@ -156,12 +156,12 @@ export class Component extends HashObject {
}
afterEditorUpdate(){
afterEditorUpdate() {
}
$onSleep() {
if(!EngineConfig.editorMode){
if (!EngineConfig.editorMode) {
this.onSleep();
}
}
......@@ -235,15 +235,15 @@ export class Component extends HashObject {
}
}
_dealGlobalTouchBegin(e): boolean {
_dealGlobalTouchBegin(e): boolean|void {
return this.onGlobalTouchBegin(e);
}
_dealGlobalTouchMove(e): boolean {
_dealGlobalTouchMove(e): boolean|void {
return this.onGlobalTouchMove(e);
}
_dealGlobalTouchEnd(e): boolean {
_dealGlobalTouchEnd(e): boolean|void {
return this.onGlobalTouchEnd(e);
}
......@@ -251,7 +251,7 @@ export class Component extends HashObject {
* 当全局触摸开始
* @param e
*/
onGlobalTouchBegin(e): boolean {
onGlobalTouchBegin(e): boolean|void {
return false;
}
......@@ -259,7 +259,7 @@ export class Component extends HashObject {
* 当全触摸移动
* @param e
*/
onGlobalTouchMove(e): boolean {
onGlobalTouchMove(e): boolean|void {
return false;
}
......@@ -267,7 +267,7 @@ export class Component extends HashObject {
* 当全触摸结束
* @param e
*/
onGlobalTouchEnd(e): boolean {
onGlobalTouchEnd(e): boolean | void {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment