public Vector2 GetRawRandomValue(string statusId) { if (RandomRanges.ContainsKey(statusId) == false) { Debug.LogError(string.Format("{0} status not found. Difficulty : {1}", statusId, difficulty.ToString())); return(Vector2.zero); } return(RandomRanges[statusId]); }
public float GetRandomRangeValue(string statusId) { if (RandomRanges.ContainsKey(statusId) == false) { Debug.LogError(string.Format("{0} status not found. Difficulty : {1}", statusId, difficulty.ToString())); return(0f); } return(Random.Range(RandomRanges[statusId].x, RandomRanges[statusId].y)); }