You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
517 B
C#

5 years ago
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TracerDot : MonoBehaviour {
private float spawned;
public Color color;
5 years ago
void Start() {
spawned = Time.time;
// color = Color.white;
5 years ago
}
void OnDrawGizmos() {
Gizmos.color = color;
5 years ago
Gizmos.DrawWireSphere(transform.position, 0.125f);
}
void Update() {
if (Time.time - spawned > 2) {
Destroy(gameObject);
}
}
}