Exemplo n.º 1
0
 public conveyorConnectionSave(ConveyorCreator.conveyorConnection conn)
 {
     drainAllLeft  = conn.drainAllLeft;
     drainAllRight = conn.drainAllRight;
     drainingLeft  = conn.drainingLeft;
     drainingRight = conn.drainingRight;
     drainLeft     = conn.drainLeft;
     drainRight    = conn.drainRight;
 }
Exemplo n.º 2
0
        public ConveyorCreator.conveyorConnection getOriginal(GameObject from, GameObject to)
        {
            var res = new ConveyorCreator.conveyorConnection(from, to, new List <GameObject>());

            res.drainAllLeft  = drainAllLeft;
            res.drainAllRight = drainAllRight;
            res.drainingLeft  = drainingLeft;
            res.drainingRight = drainingRight;
            res.drainLeft     = drainLeft;
            res.drainRight    = drainRight;
            return(res);
        }
Exemplo n.º 3
0
 public serializationData(ConveyorCreator.conveyorConnection connection)
 {
     this.connection = new conveyorConnectionSave(connection);
     this.from       = connection.createdObjs[0].transform.position;
     this.to         = connection.createdObjs[1].transform.position;
 }
Exemplo n.º 4
0
 public void setData(ConveyorCreator.conveyorConnection data)
 {
     this.data = data;
     print("connection got data: " + data.from + " -> " + data.to);
 }