Esempio n. 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;
 }
Esempio n. 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);
        }