Ejemplo n.º 1
0
 public static TimedToggleTexture Instance(int cooldown, int texture1, int texture2)
 {
   var key = new Tuple<int, int, int>(cooldown, texture1, texture2);
   TimedToggleTexture ret;
   if (!instances.TryGetValue(key, out ret))
     ret = instances[key] = new TimedToggleTexture(cooldown, texture1, texture2);
   return ret;
 }
Ejemplo n.º 2
0
        public static TimedToggleTexture Instance(int cooldown, int texture1, int texture2)
        {
            var key = new Tuple <int, int, int>(cooldown, texture1, texture2);
            TimedToggleTexture ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new TimedToggleTexture(cooldown, texture1, texture2);
            }
            return(ret);
        }