/// <summary> /// 处理Boss触发器 /// </summary> /// <param name="tmp"></param> private void ProcessTriggerBoss(TriggerBoss tmp) { if (tmp.transform.childCount > 0) { tmp.m_strBossName = tmp.transform.GetChild(0).name; if (tmp.transform.childCount > 1) { UnityEngine.Debug.LogWarning("TriggerBoss只能添加一个boss子结点 " + tmp.transform.name); } if (tmp.m_strBossName.Contains("boss_") == false) { UnityEngine.Debug.LogError("TriggerBoss子结点需要是boss " + tmp.transform.name); } } else { UnityEngine.Debug.LogError("TriggerBoss需要添加boss子结点 " + tmp.transform.name); } }
void Start() { m_TriggerBoss = this.GetComponentInParent <TriggerBoss>(); }
void Start() { m_TriggerBoss = this.GetComponentInParent<TriggerBoss>(); }
void Start() { m_avatarBase = this.GetComponentInParent<TriggerBoss>(); }
void Start() { m_avatarBase = this.GetComponentInParent <TriggerBoss>(); }
/// <summary> /// 处理Boss触发器 /// </summary> /// <param name="tmp"></param> private void ProcessTriggerBoss(TriggerBoss tmp) { if (tmp.transform.childCount > 0) { tmp.m_strBossName = tmp.transform.GetChild(0).name; if (tmp.transform.childCount > 1) { UnityEngine.Debug.LogWarning("TriggerBoss只能添加一个boss子结点 " + tmp.transform.name); } if (tmp.m_strBossName.Contains("boss_") == false) { UnityEngine.Debug.LogError("TriggerBoss子结点需要是boss " + tmp.transform.name); } } else { UnityEngine.Debug.LogError("TriggerBoss需要添加boss子结点 " + tmp.transform.name); } }