private void Start() { buttonMaterial = GetComponent <MeshRenderer>().material; texturePropertyId = Shader.PropertyToID("_MainTex"); hudManager = GetComponentInParent <HudManager>(); }
void Start() { hudManager = GetComponentInParent <HudManager>(); }