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

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