Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
scilla-core
Commits
dd15fa4a
Commit
dd15fa4a
authored
May 21, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回值增加void
parent
cd11170b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
Component.ts
src/core/Component.ts
+14
-14
No files found.
src/core/Component.ts
View file @
dd15fa4a
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment