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

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