private void ChangePlayerColor() { colorHandler = FindObjectOfType <ColorHandler>(); Color paintColor = GetComponent <MeshRenderer>().material.color; colorHandler.PlayerGainColor(paintColor); }