public void ClearXX() { if (m_Star == null || m_Star.gameObject == null) { return; } StarMove sm = m_Star.gameObject.GetComponent <StarMove>(); sm.ClearS(); }
//删除星星 public void ClearStar() { if (m_Star == null || m_Star.gameObject == null) { return; } m_Star.gameObject.SetActive(false); StarMove sm = m_Star.gameObject.GetComponent <StarMove>(); sm.ClearS(); }
//初始化星星 public void initStar() { if (m_Star == null || m_Star.gameObject == null) { return; } m_Star.gameObject.SetActive(true); StarMove sm = m_Star.gameObject.GetComponent <StarMove>(); sm.ClearS(); sm.setBtnXing(); }
void OnClickBack() { StarMove sm3 = m_Star.gameObject.GetComponent <StarMove>(); sm3.ClearS(); m_data = null; InitUI(); SetShow(false); RED.SetActive(true, TrainingRoomUI.mInstance.m_mainTraining); if (TrainingRoomUI.mInstance.m_callBack != null) { TrainingRoomUI.mInstance.OnClickExit(); } }
//清除星星 public void ClearXX() { if (star_1 == null || star_1.gameObject == null) { return; } StarMove sm = star_1.gameObject.GetComponent <StarMove>(); sm.ClearS(); if (star_2 == null || star_2.gameObject == null) { return; } StarMove sm1 = star_2.gameObject.GetComponent <StarMove>(); sm1.ClearS(); }