Пример #1
0
 private void updateAll()
 {
     //IF.GetComponent<IFBehavior>().UpdateMe();
     ID.GetComponent <IDBehavior>().UpdateMe();
     EX.GetComponent <EXBehavior>().UpdateMe();
     MEM.GetComponent <MEMBehavior>().UpdateMe();
     WB.GetComponent <WBBehavior>().UpdateMe();
 }
Пример #2
0
    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();
    }
Пример #3
0
    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();
    }