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

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