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