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
/
DestroyByTime.cs
blob
d8eecc0b8e61b0243e34355fba8f120db4657bb0
1
using
System
.
Collections
;
2
using
System
.
Collections
.
Generic
;
3
using
UnityEngine
;
4
5
public class
DestroyByTime
:
MonoBehaviour
{
6
7
public float
lifetime
;
8
9
// Use this for initialization
10
void
Start
() {
11
Destroy
(
gameObject
,
lifetime
);
12
}
13
14
// Update is called once per frame
15
void
Update
() {
16
17
}
18
}