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

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