// Use this for initialization void OnEnable() { ProjectileBase.AddLightning(this); timeAlive = 0; lightningLine = GetComponent <LineRenderer>(); timeKill = 1f; }