Unity exclude number from random. Copy. var validChoices = [1,3,5]; function GetRandom() : int { return validChoices[Random.Range(0, validChoices.
確定! 回上一頁