コード例 #1
0
ファイル: Chasing.cs プロジェクト: lokee116/Phoenix-Realms
        public static PetChasing Instance(float speed, float radius, float targetRadius)
        {
            var        key = new Tuple <float, float, float>(speed, radius, targetRadius);
            PetChasing ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new PetChasing(speed, radius, targetRadius);
            }
            return(ret);
        }
コード例 #2
0
ファイル: Chasing.cs プロジェクト: RoxyLalonde/Phoenix-Realms
 public static PetChasing Instance(float speed, float radius, float targetRadius)
 {
     var key = new Tuple<float, float, float>(speed, radius, targetRadius);
     PetChasing ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new PetChasing(speed, radius, targetRadius);
     return ret;
 }