/// <summary> /// 触发 /// </summary> public override void OnTrigger() { base.OnTrigger(); if (this.transform.childCount > 0) { this.transform.GetChild(0).gameObject.SetActive(true); } else { if (!string.IsNullOrEmpty(m_strBossName)) { TriggerModelLoader.Get(this).Load("Boss/" + m_strBossName); } } }
/// <summary> /// 触发 /// </summary> public override void OnTrigger() { base.OnTrigger(); StopCoroutine("CountTime"); StartCoroutine("CountTime"); if (this.transform.childCount > 0) { this.transform.GetChild(0).gameObject.SetActive(true); } else { if (!string.IsNullOrEmpty(m_strItemName)) { TriggerModelLoader.Get(this).Load("Item/" + m_strItemName); } } }
/// <summary> /// 触发 /// </summary> public override void OnTrigger() { base.OnTrigger(); if (this.transform.GetComponent <BoxCollider2D>() != null) { this.transform.GetComponent <BoxCollider2D>().enabled = true; } if (this.transform.childCount > 0) { this.transform.GetChild(0).gameObject.SetActive(true); } else { if (!string.IsNullOrEmpty(m_strItemName)) { TriggerModelLoader.Get(this).Load("Item/" + m_strItemName); } } }