예제 #1
0
 public static Heal Instance(float radius, int amount, short? objType)
 {
     var key = new Tuple<float, int, short?>(radius, amount, objType);
     Heal ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new Heal(radius, amount, objType);
     return ret;
 }
예제 #2
0
        public static Heal Instance(float radius, int amount, short?objType)
        {
            var  key = new Tuple <float, int, short?>(radius, amount, objType);
            Heal ret;

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