コード例 #1
0
ファイル: NavMeshGraph.cs プロジェクト: TonyDongGuaPi/joework
 public override void DeserializeSettings(GraphSerializationContext ctx)
 {
     base.DeserializeSettings(ctx);
     this.sourceMesh = (ctx.DeserializeUnityObject() as Mesh);
     this.offset = ctx.DeserializeVector3();
     this.rotation = ctx.DeserializeVector3();
     this.scale = ctx.reader.ReadSingle();
     this.accurateNearestNode = ctx.reader.ReadBoolean();
 }
コード例 #2
0
 public override void DeserializeSettingsCompatibility(GraphSerializationContext ctx)
 {
     base.DeserializeSettingsCompatibility(ctx);
     this.sourceMesh          = (ctx.DeserializeUnityObject() as Mesh);
     this.offset              = ctx.DeserializeVector3();
     this.rotation            = ctx.DeserializeVector3();
     this.scale               = ctx.reader.ReadSingle();
     this.nearestSearchOnlyXZ = !ctx.reader.ReadBoolean();
 }
コード例 #3
0
        public override void DeserializeSettingsCompatibility(GraphSerializationContext ctx)
        {
            base.DeserializeSettingsCompatibility(ctx);

            sourceMesh = ctx.DeserializeUnityObject() as Mesh;

            offset              = ctx.DeserializeVector3();
            rotation            = ctx.DeserializeVector3();
            scale               = ctx.reader.ReadSingle();
            accurateNearestNode = ctx.reader.ReadBoolean();
        }
コード例 #4
0
        public override void DeserializeSettingsCompatibility(GraphSerializationContext ctx)
        {
            base.DeserializeSettingsCompatibility(ctx);

            root               = ctx.DeserializeUnityObject() as Transform;
            searchTag          = ctx.reader.ReadString();
            maxDistance        = ctx.reader.ReadSingle();
            limits             = ctx.DeserializeVector3();
            raycast            = ctx.reader.ReadBoolean();
            use2DPhysics       = ctx.reader.ReadBoolean();
            thickRaycast       = ctx.reader.ReadBoolean();
            thickRaycastRadius = ctx.reader.ReadSingle();
            recursive          = ctx.reader.ReadBoolean();
            ctx.reader.ReadBoolean();             // Deprecated field
            mask = (LayerMask)ctx.reader.ReadInt32();
        }
コード例 #5
0
 public override void DeserializeSettingsCompatibility(GraphSerializationContext ctx)
 {
     base.DeserializeSettingsCompatibility(ctx);
     this.root               = (ctx.DeserializeUnityObject() as Transform);
     this.searchTag          = ctx.reader.ReadString();
     this.maxDistance        = ctx.reader.ReadSingle();
     this.limits             = ctx.DeserializeVector3();
     this.raycast            = ctx.reader.ReadBoolean();
     this.use2DPhysics       = ctx.reader.ReadBoolean();
     this.thickRaycast       = ctx.reader.ReadBoolean();
     this.thickRaycastRadius = ctx.reader.ReadSingle();
     this.recursive          = ctx.reader.ReadBoolean();
     ctx.reader.ReadBoolean();
     this.mask = ctx.reader.ReadInt32();
     this.optimizeForSparseGraph = ctx.reader.ReadBoolean();
     ctx.reader.ReadBoolean();
 }
コード例 #6
0
        public override void DeserializeSettings(GraphSerializationContext ctx)
        {
            base.DeserializeSettings(ctx);

            root                   = ctx.DeserializeUnityObject() as Transform;
            searchTag              = ctx.reader.ReadString();
            maxDistance            = ctx.reader.ReadSingle();
            limits                 = ctx.DeserializeVector3();
            raycast                = ctx.reader.ReadBoolean();
            use2DPhysics           = ctx.reader.ReadBoolean();
            thickRaycast           = ctx.reader.ReadBoolean();
            thickRaycastRadius     = ctx.reader.ReadSingle();
            recursive              = ctx.reader.ReadBoolean();
            autoLinkNodes          = ctx.reader.ReadBoolean();
            mask                   = (LayerMask)ctx.reader.ReadInt32();
            optimizeForSparseGraph = ctx.reader.ReadBoolean();
            optimizeFor2D          = ctx.reader.ReadBoolean();
        }
コード例 #7
0
        public override void DeserializeSettings (GraphSerializationContext ctx) {
            base.DeserializeSettings(ctx);

            root = ctx.DeserializeUnityObject() as Transform;
            searchTag = ctx.reader.ReadString();
            maxDistance = ctx.reader.ReadSingle();
            limits = ctx.DeserializeVector3();
            raycast = ctx.reader.ReadBoolean();
            use2DPhysics = ctx.reader.ReadBoolean();
            thickRaycast = ctx.reader.ReadBoolean();
            thickRaycastRadius = ctx.reader.ReadSingle();
            recursive = ctx.reader.ReadBoolean();
            autoLinkNodes = ctx.reader.ReadBoolean();
            mask = (LayerMask)ctx.reader.ReadInt32();
            optimizeForSparseGraph = ctx.reader.ReadBoolean();
            optimizeFor2D = ctx.reader.ReadBoolean();
        }