public void MakeDisorderByProbability(Disorder.DisorderType type, int TriggerCondition) { System.Random random = new System.Random(); int x = random.Next(1, 100); if (x < TriggerCondition) { if (PlayerCharacter.GetComponent <CharacterModel>().ContainDisorder(type)) { PlayerCharacter.GetComponent <CharacterModel>().GetDisorder(type); InGameUIScript.Instance.DisorderNotice(type); } } }
bool CheckDisorderTriggerCondition(Disorder.DisorderType type) { return(true); }