using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Shot : MonoBehaviour {
	[SerializeField]float _travelSpeed;
	[SerializeField]float _rechargeSpeed;

	[SerializeField]float _timeRemaining = 1;

	public Vector3 forward;

	public int damage;

	public float rechargeSpeed
	{
		get {return this._rechargeSpeed;}
	}
	
	public GameColor color;

	void Awake()
	{
	}

	void Update () {
		this.transform.position += this.forward * Time.deltaTime * this._travelSpeed;

		this._timeRemaining -= Time.deltaTime;
		if (this._timeRemaining < 0)
		{
			Destroy(this.gameObject);
		}
	}
}
