public UnitTrans(HmFriend pForm, HmFriend pLatt, Godirum pGod) { mForm = pForm; mLatt = pLatt; mGod = pGod; Show(); }
public void SetProperty(Godirum pGod, bool pIsForm, Vector3 pFinPosi, Vector3 pFinRot, float pLimitMilSec = 2000) { mGod = pGod; mIsFormer = pIsForm; mFinPosi = pFinPosi; mFinRot = pFinRot; switch (mGod) { case Godirum.PLU: mRotValue = new Vector3(0, 0, 0.01f); break; case Godirum.MUL: int ranN = AgUtil.RandomInclude(30, 50); if (mIsFormer) { mRotValue = new Vector3(0, 0, ranN * 0.01f); } else { mRotValue = new Vector3(0, 0, -ranN * 0.002f); } break; } mLimit = pLimitMilSec; }
// //////////////////////////////////////////////// Creation ... public MdFormatter(int pForm, int pLatt, Godirum pGod) { mGod = pGod; mFm = new MdIntObj(pForm, true, pGod); mLt = new MdIntObj(pLatt, true, pGod); InitGenerateChubang(); }
public HmGod(Godirum pIrum) { mIrum = pIrum; // Create Position Setting... manInitAe = new Vector3(0, 0, 0); manDora = new Vector3(0, 0, 180); mRsrcMan.SetInstantComPrefab("God", this); }
// //////////////////////////////////////////////// Simple Sub Methods ... public void AddSimpleOperation(int pF, int pL, Godirum pGod) // 35 78 Plus ... { Ag.LogIntense(3, true); (" HmEquation :: AddSimpleOperation " + pF + " " + pGod.ToString() + " " + pL).HtLog(); SetItemInt(pF, new Vector3(-7, 0, 0)); // Equa, God, Equa... SetGod(pGod, new Vector3(0, 0, 0)); SetItemInt(pL, new Vector3(7, 0, 0)); (" HmEquation :: AddSimpleOperation ___________ End ").HtLog(); Ag.LogIntense(3, false); }
public HmGod(Godirum pIrum) { mIrum = pIrum; // Create Position Setting... manInitAe = new Vector3 (0, 0, 0); manDora = new Vector3 (0, 0, 180); mRsrcMan.SetInstantComPrefab("God", this); }
List<MpsModel> arrItem = new List<MpsModel>(); // 23 + 43 * 2 ... #endregion Fields #region Methods // 35 78 Plus ... // //////////////////////////////////////////////// Simple Sub Methods ... public void AddSimpleOperation(int pF, int pL, Godirum pGod) { Ag.LogIntense (3, true); (" HmEquation :: AddSimpleOperation " + pF + " " + pGod.ToString () + " " + pL).HtLog (); SetItemInt (pF, new Vector3(-7, 0, 0) ); SetGod (pGod, new Vector3 (0, 0, 0)); SetItemInt (pL, new Vector3 (7, 0, 0)); (" HmEquation :: AddSimpleOperation ___________ End ").HtLog(); Ag.LogIntense (3, false); }
public GameObject SetGod(Godirum pGod) { GameObject theGod = null; switch (pGod) { case Godirum.PLU: theGod = mRscrcMan.GetComPrefab("", "PLUS"); // Friends Show theGod.transform.position = new Vector3 (1, 9, 0); //theGod.transform.Rotate(new Vector3(0, 0, 180 )); break; } return theGod; }
public static int DoCalculate(this int pThis, int pThat, Godirum pGod) { //(" Do Calcuate :: " + pThat + " , " + pThat).HtLog (); switch (pGod) { case Godirum.PLU: return pThis + pThat; case Godirum.MUL: return pThis * pThat; case Godirum.MIN: return pThis - pThat; } return 0; }
public void SetGod(Godirum pGod) { if (mForm != null) mForm.GetComponent<HtIndvBase> ().SetGod (pGod); if (mLatt != null) mLatt.GetComponent<HtIndvBase> ().SetGod (pGod); if (mHon != null) mHon.GetComponent<HtIndvBase> ().SetGod (pGod); foreach (GameObject obj in arrJsObj) { obj.GetComponent<HtIndvBase> ().SetGod (pGod); } foreach (GameObject obj in arrEyeObj) { obj.GetComponent<HtIndvBase> ().SetGod (pGod); } }
public GameObject SetGod(Godirum pGod) { GameObject theGod = null; switch (pGod) { case Godirum.PLU: theGod = mRscrcMan.GetComPrefab("", "PLUS"); // Friends Show theGod.transform.position = new Vector3(1, 9, 0); //theGod.transform.Rotate(new Vector3(0, 0, 180 )); break; } return(theGod); }
public static int DoCalculate(this int pThis, int pThat, Godirum pGod) { //(" Do Calcuate :: " + pThat + " , " + pThat).HtLog (); switch (pGod) { case Godirum.PLU: return(pThis + pThat); case Godirum.MUL: return(pThis * pThat); case Godirum.MIN: return(pThis - pThat); } return(0); }
// //////////////////////////////////////////////// Creation ... public MdIntObj(int pValue, bool pIsTotal, Godirum pGod) // 10 , 5 , ... { // MdIntObj intObj = new MdIntObj (1045, true); 1000, 0, 40, 5 ... //("MdIntObj :: MdIntObj " + pValue + " , Total ? " + pIsTotal).HtLog (); mTotalValue = pValue; mGod = pGod; if (!pIsTotal) { return; } arrIntObj = new List <MdIntObj> (); int jarisoo = pValue.Jarisoo(), cur10e = jarisoo; for (int k = 0; k < jarisoo; k++) { int curN = pValue.NthNum(k); arrIntObj.Add(new MdIntObj((int)(curN * Math.Pow(10, --cur10e)), false, pGod)); } //(" arrIntObj count " + arrIntObj.Count).HtLog (); }
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; } }
public void SetProperty(Godirum pGod, bool pIsForm, Vector3 pFinPosi, Vector3 pFinRot, float pLimitMilSec = 2000 ) { mGod = pGod; mIsFormer = pIsForm; mFinPosi = pFinPosi; mFinRot = pFinRot; switch (mGod) { case Godirum.PLU: mRotValue = new Vector3 (0, 0, 0.01f); break; case Godirum.MUL: int ranN = AgUtil.RandomInclude (30, 50); if (mIsFormer) mRotValue = new Vector3 (0, 0, ranN * 0.01f); else mRotValue = new Vector3 (0, 0, -ranN * 0.002f); break; } mLimit = pLimitMilSec; }
public void SetGod(Godirum pGod) { if (mForm != null) { mForm.GetComponent <HtIndvBase> ().SetGod(pGod); } if (mLatt != null) { mLatt.GetComponent <HtIndvBase> ().SetGod(pGod); } if (mHon != null) { mHon.GetComponent <HtIndvBase> ().SetGod(pGod); } foreach (GameObject obj in arrJsObj) { obj.GetComponent <HtIndvBase> ().SetGod(pGod); } foreach (GameObject obj in arrEyeObj) { obj.GetComponent <HtIndvBase> ().SetGod(pGod); } }
public Rect mPerfArea; // = new Rect(1, 1, 2, 2); // Performance Area .. #endregion Fields #region Constructors // //////////////////////////////////////////////// Creation ... public MdFormatter(int pForm, int pLatt, Godirum pGod) { mGod = pGod; mFm = new MdIntObj (pForm, true, pGod); mLt = new MdIntObj (pLatt, true, pGod); InitGenerateChubang (); }
public void SetGod(Godirum pGod) { mGod = pGod; }
public UnitTrans(HmFriend pForm, HmFriend pLatt, Godirum pGod) { mForm = pForm; mLatt = pLatt; mGod = pGod; Show (); }
public HmJinsimManager(Godirum pGod, HmFriend pForm, HmFriend pLatt) { mGod = pGod; mForm = pForm; mLatt = pLatt; }
public MdUnitOperation(int pF, int pL, Godirum pGod) { mForm = pF; mLatt = pL; mGod = pGod; }
public void SetGod( Godirum pIrum, Vector3 pAe ) { HmGod nObj = new HmGod (pIrum); arrItem.Add (nObj); }
public void SetOperation(int pF, int pL, Godirum pGod) { mEq.AddSimpleOperation (pF, pL, pGod); }
public int mTotalValue; // 123 / 100 / 20 / 3 ... #endregion Fields #region Constructors // 10 , 5 , ... // //////////////////////////////////////////////// Creation ... public MdIntObj(int pValue, bool pIsTotal, Godirum pGod) { // MdIntObj intObj = new MdIntObj (1045, true); 1000, 0, 40, 5 ... //("MdIntObj :: MdIntObj " + pValue + " , Total ? " + pIsTotal).HtLog (); mTotalValue = pValue; mGod = pGod; if (!pIsTotal) return; arrIntObj = new List<MdIntObj> (); int jarisoo = pValue.Jarisoo (), cur10e = jarisoo; for (int k=0; k<jarisoo; k++) { int curN = pValue.NthNum (k); arrIntObj.Add (new MdIntObj ((int)(curN * Math.Pow (10, --cur10e)), false, pGod)); } //(" arrIntObj count " + arrIntObj.Count).HtLog (); }
public void SetGod(Godirum pIrum, Vector3 pAe) { HmGod nObj = new HmGod(pIrum); arrItem.Add(nObj); }