模拟时+ l1 w8 _; z- t9 q
obj.move(pos1);% T9 D' A0 b2 s* v. ^. N. V
这句老出错,但不知错在哪 ,请教高手~~~ ' i* ?$ l5 f+ V) U4 ^还有就是装卸站transferstation 的methods初始程序看不懂,% ? B# _% q8 p5 ?
i : integer), g0 e [' r f( }( O, `# l
-- @ : waiting Target 6 w# A2 {6 R u% [+ N' |3 l-- ? : TransferStation 8 |7 \( x Q/ y5 Z4 ?, o9 g# T, J Wis4 p+ B* O8 B+ U7 G
do" ?* m, n; k, N2 [3 e y
if i = 1 then' b- e: s6 u- D
-- before starting the transfer to the TransferStation2 w& c- P" ^7 [
-- parts/target are ready, m8 W2 v4 m6 x; O6 d' l' z7 z: T
elseif i = 2 then # `- U, O6 {- i* r: Q -- before parts leaving the TransferStation / P$ O* S8 ^( y& o6 f
end; 2 w; l2 l; Z" w( y; a# Uend;- ]" P) m5 S* g1 k$ ]: e
如果要设置有条件的卸载,当物件属性integer满足一定数量条件时卸载,应该如何编写?