Ejemplo n.º 1
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;
 }
Ejemplo 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);
        }