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

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new Chasing(speed, radius, targetRadius, objType);
            }
            return(ret);
        }
コード例 #3
0
 IfNot.Instance(
     Chasing.Instance(20, 40, 30, 0x0d54),