12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using UnityEngine;
- using System.Collections;
- namespace YLBattle
- {
- /// <summary>
- /// 技能释放(数据交换)
- /// </summary>
- public partial class SkillControl : MonoBehaviour
- {
- /// <summary>
- /// 通知后端子弹当前位置
- /// </summary>
- /// <param name="id">id</param>
- /// <param name="x">x</param>
- /// <param name="y">y</param>
- public void ModifyBulletPostion(string id, Vector3 pos)
- {
- if (mBattleFeildAdapter != null)
- {
- mBattleFeildAdapter.ModifyBulletPostion(id, pos);
- }
- }
- /// <summary>
- /// 移除[轨迹阶段的]子弹..
- /// </summary>
- /// <param name="id">子弹id.</param>
- public void removeProjectile(string id)
- {
- if (ProjectileBases.ContainsKey(id))
- {
- Destroy(this.ProjectileBases[id].gameObject);
- ProjectileBases.Remove(id);
- }
- }
- /// <summary>
- /// 移除[爆炸完毕的]子弹.
- /// </summary>
- /// <param name="id">子弹id.</param>
- public void removeExplode(string id)
- {
- if (ExplodeBases.ContainsKey(id))
- {
- Destroy(this.ExplodeBases[id].gameObject);
- ExplodeBases.Remove(id);
- }
- ///通知子弹消亡
- if (mBattleFeildAdapter != null)
- {
- mBattleFeildAdapter.MarkBulletDead(id);
- }
- }
- }
- }
|