Exemplo n.º 1
0
        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]);
        }
Exemplo n.º 2
0
        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));
        }