Ejemplo n.º 1
0
        public static InfiniteSpiralAttack2 Instance(int cooldown, int arms, float offsetIncrement = 1, float offsetBase = 0, int projectileIndex = 0)
        {
            var key = new Tuple <int, int, float, float, int>(cooldown, arms, offsetIncrement, offsetBase, projectileIndex);
            InfiniteSpiralAttack2 ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new InfiniteSpiralAttack2(cooldown, arms, offsetIncrement, offsetBase, projectileIndex);
            }
            return(ret);
        }
Ejemplo n.º 2
0
 public static InfiniteSpiralAttack2 Instance(int cooldown, int arms, float offsetIncrement = 1, float offsetBase = 0, int projectileIndex = 0)
 {
     var key = new Tuple<int, int, float, float, int>(cooldown, arms, offsetIncrement, offsetBase, projectileIndex);
     InfiniteSpiralAttack2 ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new InfiniteSpiralAttack2(cooldown, arms, offsetIncrement, offsetBase, projectileIndex);
     return ret;
 }