public static TossEnemyAtPlayer Instance(float range, short objType)
 {
     var key = new Tuple<float, short>(range, objType);
     TossEnemyAtPlayer ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new TossEnemyAtPlayer(range, objType);
     return ret;
 }
Esempio n. 2
0
        public static TossEnemyAtPlayer Instance(float range, short objType)
        {
            var key = new Tuple <float, short>(range, objType);
            TossEnemyAtPlayer ret;

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