예제 #1
0
        public static AimedRingAttack Instance(int count, float radius = 0, float offset = 0, short?objType = null, int projectileIndex = 0)
        {
            var             key = new Tuple <int, float, float, short?, int>(count, radius, offset, objType, projectileIndex);
            AimedRingAttack ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new AimedRingAttack(count, radius, offset, objType, projectileIndex);
            }
            return(ret);
        }
예제 #2
0
 public static AimedRingAttack Instance(int count, float radius = 0, float offset = 0, short? objType = null, int projectileIndex = 0)
 {
   var key = new Tuple<int, float, float, short?, int>(count, radius, offset, objType, projectileIndex);
   AimedRingAttack ret;
   if (!instances.TryGetValue(key, out ret))
     ret = instances[key] = new AimedRingAttack(count, radius, offset, objType, projectileIndex);
   return ret;
 }