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