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

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