示例#1
0
 void SetBackgroundColor()
 {
     backgroundType = currentBallTypes [Random.Range(0, currentBallTypes.Count)];
     background.GetComponent <Renderer>().material.color = ballManager.GetBackground(backgroundType);
     background.GetComponent <SpriteRenderer>().sprite   = ballManager.GetRndBackImg();
 }