예제 #1
0
 public masterBallStruct addBallToTheUI(masterBallStruct ball)
 {
     ball.uIObject = Instantiate(ballIconObject, ballIconHolder);
     ball.uIObject.GetComponentInChildren <Image>().sprite = BallIconHolder.GetIcon(BallResult.UNTHROWN, ball.myTauntLevel);
     return(ball);
 }
예제 #2
0
 public masterBallStruct changeBallUISpriteToCorrectColor(masterBallStruct ball, BallResult myResult)
 {
     ball.uIObject.GetComponentInChildren <Image>().sprite = BallIconHolder.GetIcon(myResult, ball.myTauntLevel);
     return(ball);
 }
예제 #3
0
 private void Awake()
 {
     Instance = this;
 }