public void oneRight() { if (WB.GetComponent <WBBehavior>().oper != null) { doneOp.Push(WB.GetComponent <WBBehavior>().oper); } WB.GetComponent <WBBehavior>().oper = MEM.GetComponent <MEMBehavior>().oper; MEM_WB.GetComponent <MEM_WBBehavior>().oper = MEM.GetComponent <MEMBehavior>().oper; MEM.GetComponent <MEMBehavior>().oper = EX.GetComponent <EXBehavior>().oper; EX_MEM.GetComponent <EX_MEMBehavior>().oper = EX.GetComponent <EXBehavior>().oper; EX.GetComponent <EXBehavior>().oper = ID.GetComponent <IDBehavior>().oper; ID_EX.GetComponent <ID_EXBehavior>().oper = ID.GetComponent <IDBehavior>().oper; ID.GetComponent <IDBehavior>().oper = IF.GetComponent <IFBehavior>().oper; IF_ID.GetComponent <IF_IDBehavior>().oper = IF.GetComponent <IFBehavior>().oper; IF.GetComponent <IFBehavior>().oper = null; updateAll(); }
public void oneLeft() { IF.GetComponent <IFBehavior>().oper = ID.GetComponent <IDBehavior>().oper; ID.GetComponent <IDBehavior>().oper = EX.GetComponent <EXBehavior>().oper; IF_ID.GetComponent <IF_IDBehavior>().oper = ID.GetComponent <IDBehavior>().oper; EX.GetComponent <EXBehavior>().oper = MEM.GetComponent <MEMBehavior>().oper; ID_EX.GetComponent <ID_EXBehavior>().oper = EX.GetComponent <EXBehavior>().oper; MEM.GetComponent <MEMBehavior>().oper = WB.GetComponent <WBBehavior>().oper; EX_MEM.GetComponent <EX_MEMBehavior>().oper = MEM.GetComponent <MEMBehavior>().oper; if (doneOp.Count > 0) { WB.GetComponent <WBBehavior>().oper = (GameObject)doneOp.Pop(); MEM_WB.GetComponent <MEM_WBBehavior>().oper = WB.GetComponent <WBBehavior>().oper; } else { WB.GetComponent <WBBehavior>().oper = null; MEM_WB.GetComponent <MEM_WBBehavior>().oper = null; } updateAll(); }