5b8ebb7a35
testing
18 lines
328 B
C#
18 lines
328 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class Rocket : MonoBehaviour {
|
|
|
|
public float timeOut = 4.0f;
|
|
|
|
// Use this for initialization
|
|
void Start () {
|
|
Destroy (gameObject, timeOut);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
transform.Translate(new Vector3(0,0,1) * Time.deltaTime*150);
|
|
}
|
|
}
|