public void StopUsingAnyAction() { m_ActionCurrentlyUsed = false; foreach (GameObject go in m_EquipmentArray) { if (go != null) { m_EquipmentShip = go.GetComponent <EquipmentShip>(); m_EquipmentShip.StopUsing(); } } }
public void StopUsingAnyAction() { m_ActionCurrentlyUsed = false; foreach(GameObject go in m_EquipmentArray) { if(go!=null) { m_EquipmentShip = go.GetComponent<EquipmentShip>(); m_EquipmentShip.StopUsing(); } } }