Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-kickball
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
wildfirecode13
scilla-kickball
Commits
bbbdbae3
Commit
bbbdbae3
authored
Apr 19, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c459edba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
BallItem.pfb
assets/prefabs/BallItem.pfb
+4
-0
BallItem.ts
assets/scripts/scenes/BallItem.ts
+1
-0
testC.ts
assets/scripts/scenes/testC.ts
+13
-0
testC.ts.meta
assets/scripts/scenes/testC.ts.meta
+1
-0
No files found.
assets/prefabs/BallItem.pfb
View file @
bbbdbae3
...
...
@@ -22,6 +22,10 @@
{
"script": "./scripts/scenes/BallItem",
"properties": {}
},
{
"script": "./scripts/scenes/testC",
"properties": {}
}
],
"children": [
...
...
assets/scripts/scenes/BallItem.ts
View file @
bbbdbae3
...
...
@@ -8,5 +8,6 @@ export default class BallItem extends ScillaComponent {
const
{
entity
}
=
this
;
this
.
_speed
+=
1.5
;
entity
.
getComponent
(
Transform
).
position
.
y
+=
this
.
_speed
;
console
.
log
(
'BallItem onUpdate'
)
}
}
\ No newline at end of file
assets/scripts/scenes/testC.ts
0 → 100644
View file @
bbbdbae3
import
ScillaComponent
from
'scilla-components/src/base/ScillaComponent'
;
export
default
class
testC
extends
ScillaComponent
{
onAwake
(){
super
.
onAwake
();
console
.
log
(
'im testC'
)
}
onUpdate
(
t
){
super
.
onUpdate
(
t
);
}
}
assets/scripts/scenes/testC.ts.meta
0 → 100644
View file @
bbbdbae3
{"ver":"1.0.1","uuid":"3271100c-b1f8-4443-9b90-421ec1c36fcd","subMetas":{},"type":"script"}
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