예제 #1
0
        public override void Update()
        {
            base.Update();

            if (Context == null || mInputCompile == null)
            {
                return;
            }

            mInputCompile.Update();

            if (!mInputCompile.IsFinished)
            {
                return;
            }

            NavmeshBuild build = Context.Build;

            if (!build)
            {
                return;
            }

            UnityBuildContext mLogger = new UnityBuildContext();

            if (mInputCompile.HasData)
            {
                if (!build.SetInputData(mLogger, mInputCompile.Geometry
                                        , mInputCompile.Info, mInputCompile.Processors, mInputCompile.Connections
                                        , true))
                {
                    mLogger.PostError("Could not apply input data.", build);
                }
            }
            else
            {
                mLogger.PostError("Input compile did not produce anything.", build);
            }

            mInputCompile = null;
        }
예제 #2
0
        public override void Update()
        {
            base.Update();

            if (Context == null || mInputCompile == null)
                return;

            mInputCompile.Update();

            if (!mInputCompile.IsFinished)
                return;

            NavmeshBuild build = Context.Build;

            if (!build)
                return;

            UnityBuildContext mLogger = new UnityBuildContext();

            if (mInputCompile.HasData)
            {
                if (!build.SetInputData(mLogger, mInputCompile.Geometry
                    , mInputCompile.Info, mInputCompile.Processors, mInputCompile.Connections
                    , true))
                {
                   mLogger.PostError("Could not apply input data.", build);
                }
            }
            else
                mLogger.PostError("Input compile did not produce anything.", build);

            mInputCompile = null;
        }