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

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