Esempio n. 1
0
 public static StrictCircling Instance(float radius, float speed, short? objType)
 {
     var key = new Tuple<float, float, short?>(radius, speed, objType);
     StrictCircling ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new StrictCircling(radius, speed, objType);
     return ret;
 }
Esempio n. 2
0
        public static StrictCircling Instance(float radius, float speed, short?objType)
        {
            var            key = new Tuple <float, float, short?>(radius, speed, objType);
            StrictCircling ret;

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