repo.or.cz
/
BattleCats.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update README.md
[BattleCats.git]
/
Assets
/
Scripts
/
BossScripts
/
BossBulletMover.cs
blob
3ff84e2e47e57f849197fdafb0341d07edf2d2ec
1
using
System
.
Collections
;
2
using
System
.
Collections
.
Generic
;
3
using
UnityEngine
;
4
5
public class
BossBulletMover
:
MonoBehaviour
{
6
7
public float
speed
;
8
9
void
Start
() {
10
Rigidbody2D bullet
;
11
bullet
=
GetComponent
<
Rigidbody2D
>();
12
bullet
.
velocity
=
transform
.
right
*
speed
;
13
}
14
15
}