Ejemplo n.º 1
0
    public override void Transform()
    {
        Ag.LogString("  HmEquation :: Transform   !! arrItem Num :: " + arrItem.Count);
        if (!IsUnitEquation())
        {
            Ag.LogString("  HmEquation :: Transform   I'm NOT UnitEquation   iteration arrItem..  >>>>>  ");
            foreach (MpsModel item in arrItem)
            {
                item.Transform();
            }
            return;
        }

        Ag.LogString("  HmEquation :: Transform   I'm UnitEquation   iteration arrItem.. ");   // Unit Equation Case ..

        Godirum curGod = CurrentGod();
        int     max    = MaxJarisu();

        switch (curGod)
        {
        case Godirum.PLU:
            for (int j = 0; j < max; j++)
            {
                HmFriend  latt = (HmFriend)((HmEquation)arrItem[2]).GetFriend(j);
                UnitTrans unit = new UnitTrans(((HmEquation)arrItem[0]).GetFriend(j), latt, ((HmGod)arrItem[1]).mIrum);

                // Set Position
                unit.SetResultPosi(latt.arrJinsim[0].transform.position);

                // Over 10 case ... Ceremony ... >>>


                arrTransUnit.Add(unit);
            }
            break;

        case Godirum.MUL:

            break;
        }
    }
Ejemplo n.º 2
0
 public void UnitTransStart()
 {
     mCurrentUnit = arrTransUnit [0];
     mCurrentUnit.StartTrans();
 }
Ejemplo n.º 3
0
 public void UnitTransStart()
 {
     mCurrentUnit = arrTransUnit [0];
     mCurrentUnit.StartTrans ();
 }
Ejemplo n.º 4
0
    public override void Transform()
    {
        Ag.LogString ("  HmEquation :: Transform   !! arrItem Num :: " + arrItem.Count);
        if (!IsUnitEquation ()) {
            Ag.LogString ("  HmEquation :: Transform   I'm NOT UnitEquation   iteration arrItem..  >>>>>  ");
            foreach (MpsModel item in arrItem) {
                item.Transform ();
            }
            return;
        }

        Ag.LogString ("  HmEquation :: Transform   I'm UnitEquation   iteration arrItem.. ");  // Unit Equation Case ..

        Godirum curGod = CurrentGod ();
        int max = MaxJarisu ();
        switch (curGod) {
        case Godirum.PLU:
            for(int j=0; j<max; j++) {
                HmFriend latt = (HmFriend)((HmEquation) arrItem[2]).GetFriend(j);
                UnitTrans unit = new UnitTrans(((HmEquation) arrItem[0]).GetFriend(j), latt, ((HmGod) arrItem[1]).mIrum );

                // Set Position
                unit.SetResultPosi(latt.arrJinsim[0].transform.position);

                // Over 10 case ... Ceremony ... >>>

                arrTransUnit.Add(unit);
            }
            break;
        case Godirum.MUL:

            break;
        }
    }