void PlayCardAnim() { // kapai.SetMonStar (mMonster.Star); CardSystemCell nn = gameObject.GetComponent<CardSystemCell>(); CradSystemFx.GetInstance().mSelectScript = nn; MiniItween m = MiniItween.ScaleTo(gameObject, new Vector3(44,44,40),0.1f); m.myDelegateFuncWithObject += SetCompleteScale; }
public void InitCardCell(ItemOfReward reward, int mid, int m_index) { Monster mon = reward.toMonster(Core.Data.monManager); if (mon != null) { GameObject obj1 = null; obj1 = PrefabLoader.loadFromPack("LS/pbLSCard1") as GameObject; if (obj1 != null) { GameObject go = NGUITools.AddChild(DBUIController.mDBUIInstance._TopRoot, obj1); go.gameObject.name = "pbLSCard"; go.transform.localRotation = Quaternion.Euler(new Vector3(0, 180, 0)); CardSystemCell mm = go.gameObject.GetComponent <CardSystemCell>(); mSelectScript = mm; mSelectScript.SetInitPos(mid, m_index, reward); } } }
public void SetShowStage(int ID, GameObject obj) { if (mStage != null) { _CRLuo_Rot_Inversion = mStage.GetComponentInChildren <CRLuo_Rot_Inversion>(); CardSystemCell cell = obj.GetComponent <CardSystemCell> (); if (cell != null) { _CRLuo_Rot_Inversion.InputOBJ = cell.kapai.gameObject; } else { _CRLuo_Rot_Inversion.InputOBJ = obj; } mStage.Try_key = false; mStage.ShowCharactor(ID); } }