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

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