Esempio n. 1
0
 public static ReturnSpawn Instance(float speed)
 {
     ReturnSpawn ret;
     if (!instances.TryGetValue(speed, out ret))
         ret = instances[speed] = new ReturnSpawn(speed);
     return ret;
 }
Esempio n. 2
0
        public static ReturnSpawn Instance(float speed)
        {
            ReturnSpawn ret;

            if (!instances.TryGetValue(speed, out ret))
            {
                ret = instances[speed] = new ReturnSpawn(speed);
            }
            return(ret);
        }