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