void Start() { image = GetComponent <Image> (); ScoreBarBehaviour b = GetComponent <ScoreBarBehaviour> (); InitColorSwapTex(); FillSwapTextureColors(); mColorSwapTex.Apply(); }
static int GetScore(ScoreBarBehaviour scoreBar) { return(MatchManager.scores.ContainsKey(scoreBar.PlayerSuffix) ? MatchManager.scores [scoreBar.PlayerSuffix] : 0); }