public void hoverDot(int player, Color color, bool orig) { if (dotCount [player] < dotCap && playerDots[player].Length > 0) { GameObject dot = playerDots[player][dotCount[player]]; dotBehavior dotScript = dot.GetComponent <dotBehavior> (); if (!dotScript.coloredIn) { if (!orig) { dotScript.setDotColor(color); } else { dotScript.setDotColor(dotScript.origColor); } } } }
public void updateDots(int player, Color color) { if (dotCount [player] < dotCap) { GameObject dot = playerDots[player][dotCount[player]]; dotBehavior dotScript = dot.GetComponent <dotBehavior> (); if (!dotScript.coloredIn) { dotScript.setDotColor(color); dotScript.coloredIn = true; dotCount[player]++; } } }