using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
namespace YLBattle
{
///
/// 技能控制器
///
//[RequireComponent(typeof(SkillReady))]
//[RequireComponent(typeof(SkillShoot))]
//[RequireComponent(typeof(SkillExplode))]
public partial class SkillControl : MonoBehaviour
{
///
/// 技能准备.
///
private SkillReady skillReady;
///
/// 技能发射.
///
private SkillShoot skillShoot;
///
/// 技能爆炸.
///
private SkillExplode skillExplode;
///
/// 地图中心位置(特效 type=2 敌方)
///
private Vector3 mMapCenter = Vector3.zero;
///
/// 地图中心位置(特效 type=2 己方)
///
private Vector3 mUICenter = Vector3.zero;
///
/// 实例
///
public static SkillControl mInstance;
///
/// 数据交互接口
///
private IBattleGlobalOper mBattleFeildAdapter = null;
///
/// 子弹字典
///
private Dictionary ProjectileBases = new Dictionary();
///
/// 爆炸字典
///
private Dictionary ExplodeBases = new Dictionary();
///
/// 准备阶段 技能字典
///
public Dictionary mCommonBaseObjs = new Dictionary();
///
/// 画布
///
private Canvas m_Canvas = null;
///
///
///
public Canvas SkillCanvas
{
get { return m_Canvas; }
}
///
///坐标
///
private RectTransform rectTransform;
///
/// 获取单键
///
/// 单键实例
public static SkillControl Instance
{
get
{
if (mInstance == null)
{
GameObject obj = GameObject.Find("SkillControl");
if (obj != null)
{
mInstance = obj.AddComponent();
}
}
return mInstance;
}
}
///
/// Start
///
private void Start()
{
this.gameObject.AddComponent();
this.gameObject.AddComponent();
this.gameObject.AddComponent();
skillReady = GetComponent();
skillShoot = GetComponent();
skillExplode = GetComponent();
m_Canvas = GetComponent