void ChangeTheActionCurrentlyUsed(int number) { if (m_EquipmentShip != m_EquipmentArray[number].GetComponent <EquipmentShip>()) { //We stop other action StopUsingAnyAction(); m_EquipmentShip = m_EquipmentArray[number].GetComponent <EquipmentShip>(); } //Let's do the action, aim first, use after m_EquipmentShip.EquipmentManager(); //We currently use an action m_ActionCurrentlyUsed = true; }