예제 #1
0
        private Warp FindTargetWarp()
        {
            for (int i = 0; i < targetLevel.vis.Length; ++i)
            {
                if (targetLevel.vis[i] == sourceLevel.id)
                {
                    int  warpId = targetLevel.warp[i];
                    Warp warp   = LevelWarpInfo.Find(warpId).instance;
                    if (warp != null)
                    {
                        return(warp);
                    }
                }
            }

            return(null);
        }