using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine.EventSystems;
///
/// 龙骨英雄动画管理
///
public class Hero3DShowControler : MonoBehaviour
{
///
/// 单键
///
private static Hero3DShowControler pInit = null;
///
/// 言灵师节点
///
private GameObject mHeroModelRoot = null;
///
/// 人物 控制节点
///
public Hero3DShowControler mInputTouchContorler = null;
///
/// 相机映射图片
///
private RenderTexture renderTexture;
///
///
///
private GameObject mHeroModelCamera;
///
/// 相机动态render图片(人物角色)
///
public RenderTexture CameraRenderTexture
{
get { return renderTexture; }
}
///
/// 游戏内 展示的英雄模型列表
///
public Dictionary existMainDisplayHeroModelDic = new Dictionary();
///
/// 获取管理者
///
/// 单键实例
public static Hero3DShowControler Instance()
{
return pInit;
}
///
/// 初始化
///
private void Awake()
{
pInit = this;
//// 切换关卡时不删除
DontDestroyOnLoad(this);
}
///
/// start
///
private void Start()
{
}
///
///
///
public void Clear()
{
Transform[] allChild = mHeroModelRoot.GetComponentsInChildren(true);
foreach (Transform ele in allChild)
{
if (ele != mHeroModelRoot.transform)
{
Destroy(ele.gameObject);
}
}
existMainDisplayHeroModelDic.Clear();
}
}