void CreateCastDisEffect() { GameMain.Instance.ResMgr.LoadResourceAsync(this, "mat_ring", typeof(Material), delegate(UnityEngine.Object matAsset) { mObjEffectRing = ModelGenerater.AttachMeshRender(matAsset as Material , ModelGenerater.CreateRing(mSkillConfig.distance / 1000f, mSkillConfig.distance / 1000f - 0.1f)); UpdateCastDisEffect(); UpdateCastDisEffectState(); }, delegate(string errorCode) { }); }
void CreateAreaEffect() { GameMain.Instance.ResMgr.LoadResourceAsync(this, "mat_circle", typeof(Material), delegate(UnityEngine.Object matAsset) { mObjEffectCircle = ModelGenerater.AttachMeshRender(matAsset as Material , ModelGenerater.CreateCircle(mSkillConfig.targetInfo.param2 / 1000f)); UpdateAreaEffect(); UpdateAreaEffectState(); }, delegate(string errorCode) { }); }