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

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