//using UnityEngine;
//using System.Collections;
//using System.Collections.Generic;
/////
/////
/////
//public class TestCastSkill : MonoBehaviour
//{
// public Transform m_EffectParent = null;
// public Transform m_Target = null;
// public Transform m_Start = null;
// ///
// ///
// ///
// private GameObject mBtnCastSkill = null;
// public GameObject m_ReadyEffect = null;
// public GameObject m_ShootEffect = null;
// public GameObject m_SendEffect = null;
// public GameObject m_BombEffect = null;
// ///
// /// 投射层.
// ///
// public LayerMask layerMask;
// ///
// ///
// ///
// void Start()
// {
// CameraManager.Instance.Init();
// this.mBtnCastSkill = this.transform.Find("BtnCastSkill").gameObject;
// EventTriggerListener.Get(mBtnCastSkill).onClick = OnBtnCastSkill;
// layerMask.value = 1 << 11;
// }
// ///
// /// 初始化各个效果需要的数据
// ///
// void InitEffectData()
// {
// }
// ///
// /// 释放技能
// ///
// ///
// public void OnBtnCastSkill(GameObject obj)
// {
// LogHelper.Log("enter");
// GameObject temp = (GameObject)Instantiate(this.m_SendEffect);
// temp.transform.SetParent(m_EffectParent);
// ProjectileArcGUI proj = temp.AddComponent();
// temp.SetActive(false);
// Transform[] all = temp.GetComponentsInChildren();
// foreach (Transform rc in all)
// {
// rc.gameObject.layer = LayerMask.NameToLayer("BattleScreen"); //指定Layer
// }
// temp.SetActive(true);
// proj.init(m_Start.position, m_Target.position, m_Target, layerMask, 1.0f, 10.0f, 0);
// }
// ///
// /// 处理一下~
// ///
// ///
// ///
// public void BattleEffectHandle(Transform model, Vector3 trgPos)
// {
// Transform[] all = model.GetComponentsInChildren();
// foreach (Transform rc in all)
// {
// rc.gameObject.layer = LayerMask.NameToLayer("BattleScreen"); //指定Layer
// }
// Vector3 trgUIPos = Vector3.zero;
// Vector3 screenPosStart = CameraManager.Instance.Battle3D.WorldToViewportPoint(trgPos);
// Vector3 pos = CameraManager.Instance.BattleScreenEffect.ViewportToWorldPoint(screenPosStart);
// trgUIPos = new Vector2(pos.x, pos.y);
// model.transform.SetParent(transform);
// model.transform.position = trgUIPos;
// model.transform.rotation = Quaternion.identity;
// model.transform.localScale = new Vector3(1, 1, 1);
// }
// ///
// ///
// ///
// void Update()
// {
// }
//}