public void SendCharacterToMission(Character character) { if (NewMission == null) { return; } EnergyManager energy = GameObject.FindGameObjectWithTag("EnergyManager").GetComponent <EnergyManager>(); energy.MinusEnergy(NewMission.NeedingEnergy); if (NewMission.GetChanceToCompliteMission(character) > 1) { OnWinMission("I`m winner!"); } else { OnLoseMission("I`m loser..."); } HideMission(); }