void Start() { // _IsRemove = true; if (_Camera != null) { _Camera.transform.localPosition = new Vector3(-53f, 458f, -1089f); // _Camera.transform.localRotation = Quaternion.Euler(new Vector3(3.1f, 0f, 0f)); _Camera.transform.localRotation = Quaternion.Euler(new Vector3(-6f, 0f, 0f)); } // MultipleX = Mathf.Abs(458f - 118f)/Mathf.Abs(-2436f + 1089f); // MultipleY = Mathf.Abs(53f - 47f)/Mathf.Abs(-2436f + 1089f); // MultipleRotate = Mathf.Abs(3.1f + 6f)/Mathf.Abs(-2436f + 1089f); Object bg = PrefabLoader.loadFromPack("ZQ/CreateRoleBg"); if (bg != null) { m_CreateRoleBg = Instantiate(bg) as GameObject; RED.AddChild(m_CreateRoleBg, DBUIController.mDBUIInstance._bottomRoot); } _Stage = CRLuo_ShowStage.CreateRoleShowStage(); if (_Stage != null) { _Stage.Try_key = false; _Stage.CameraOBJ.gameObject.SetActive(false); _Stage.ShowCharactor(Core.Data.rechargeDataMgr.NPCId); _Stage.gameObject.transform.localPosition = new Vector3(0.6f, 0f, -1.7f); } BeginAnimat(); }
void show3DModel(int num, MonsterAttribute attri, bool AllFated) { if (mShowOne == null) { mShowOne = CreateMonsterComeShowStage(); mShowOne.Try_key = false; } RED.SetActive(true, mShowOne.gameObject); if (previouNum != num || attri != previousAttr) { mShowOne.ShowCharactor(num, attri, AllFated); previouNum = num; previousAttr = attri; } }
//-----------------change by jc 2014.12.12------------------ //----要显示两张卡一样的卡牌,是不需要创建两次这个模型的,显示层显示同一个模型在不同的位置即可 //-------------------------------------------------------------------- void SetMonsterModel(CRLuo_ShowStage _mShowOne = null) { if (_mShowOne != null) { this.mShowOne = _mShowOne; } if (mShowOne == null) { mShowOne = InitCardFx(); mShowOne.Try_key = false; _CRLuo_Rot_Inversion = mShowOne.GetComponent <CRLuo_Rot_Inversion>(); _CRLuo_Rot_Inversion.InputOBJ = cardObj.gameObject; } if (previouNum != m_data.num || m_data.RTData.Attribute != previousAttr) { mShowOne.ShowCharactor(m_data.num, m_data.RTData.Attribute); previouNum = m_data.num; previousAttr = m_data.RTData.Attribute; } // m_Animator.SetFloat ("aa", 20.0f); }
public void show3DModel(int num, MonsterAttribute attri, bool AllFated) { if (mShowOne == null) { mShowOne = CRLuo_ShowStage.CreateShowStage(); mShowOne.Try_key = false; } RED.SetActive(true, mShowOne.gameObject); if (previouNum != num || attri != previousAttr) { mShowOne.ShowCharactor(num, attri, AllFated); if (Core.Data.sourceManager.IsModelExist(num)) { previouNum = num; previousAttr = attri; } else { previouNum = 0; previousAttr = MonsterAttribute.DEFAULT_NO;; } } }
void Start() { ActivityNetController.GetInstance().SendUserDeviceInfo(); //m_btnOK.TextID = 5030; m_txtTitle.text = Core.Data.stringManager.getString(5134); m_inputName.label.text = ""; m_inputName.characterLimit = 20; stage = CRLuo_ShowStage.CreateRoleShowStage(); stage.Try_key = false; stage.ShowCharactor(PlayerInfo.DEFAULT_HEAD, MonsterAttribute.FIRE); stage.CameraOBJ.transform.localPosition = new Vector3(-0.55f, 0.3f, -2); stage.NewOBJ = false; stage.CameraOBJ.transform.localPosition = new Vector3(0, 0.45f, -10); Object bg = PrefabLoader.loadFromPack("ZQ/CreateRoleBg"); if (bg != null) { m_CreateRoleBg = Instantiate(bg) as GameObject; RED.AddChild(m_CreateRoleBg, DBUIController.mDBUIInstance._bottomRoot); } SendRandomNameMsg(); }
void Show(int ID) { ShowID.ShowCharactor(ID); }