public static PredictiveAttack Instance(float radius, float predictFactor, int projectileIndex = 0)
 {
     var key = new Tuple<float, float, int>(radius, predictFactor, projectileIndex);
     PredictiveAttack ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new PredictiveAttack(radius, predictFactor, projectileIndex);
     return ret;
 }
        public static PredictiveAttack Instance(float radius, float predictFactor, int projectileIndex = 0)
        {
            var key = new Tuple <float, float, int>(radius, predictFactor, projectileIndex);
            PredictiveAttack ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new PredictiveAttack(radius, predictFactor, projectileIndex);
            }
            return(ret);
        }