示例#1
0
        public void InitialiseNode(Vector3Int Location, Matrix matrix)
        {
            var ZeroedLocation = new Vector3Int(x: Location.x, y: Location.y, 0);
            var metaData       = matrix.MetaDataLayer.Get(ZeroedLocation);
            var pipeNode       = new PipeNode();
            var rotation       = matrix.UnderFloorLayer.Tilemap.GetTransformMatrix(Location);
            int Offset         = PipeFunctions.GetOffsetAngle(rotation.rotation.eulerAngles.z);

            pipeNode.Initialise(this, metaData, ZeroedLocation, matrix, Offset);
            metaData.PipeData.Add(pipeNode);
        }
示例#2
0
        public void InitialiseNodeNew(Vector3Int Location, Matrix matrix, Matrix4x4 Matrix4x4)
        {
            var ZeroedLocation = new Vector3Int(x: Location.x, y: Location.y, 0);
            var metaData       = matrix.MetaDataLayer.Get(ZeroedLocation);
            var pipeNode       = new PipeNode();
            var rotation       = Matrix4x4;
            int Offset         = PipeFunctions.GetOffsetAngle(rotation.rotation.eulerAngles.z);

            pipeNode.Initialise(this, metaData, ZeroedLocation, matrix, Offset);
            metaData.PipeData.Add(pipeNode);
        }