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

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