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

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new Swirling(radius, speed);
            }
            return(ret);
        }