void Start() { whitePieces = 16; blackPieces = 16; tc = GetComponent <turnController>(); source = GetComponent <AudioSource>(); }
void Start() { wPieces = GameObject.FindGameObjectsWithTag("White"); bPieces = GameObject.FindGameObjectsWithTag("Black"); button = transform.GetChild(4).gameObject; tc = GameObject.FindGameObjectWithTag("GameController").GetComponent <turnController>(); cc = GameObject.FindGameObjectWithTag("GameController").GetComponent <clashController>(); }