Home > other >  GameObject and button associated objects
GameObject and button associated objects

Time:09-24

Just don't spray contact unity... See a piece of code

 public GameObject BtnLearn; 
Public GameObject BtnPlay;
Void the Start () {
UIEventListener. Get (BtnLearn). The onClick=OnClickLearn;
UIEventListener. Get (BtnPlay). The onClick=OnClickPlay;
}

I want to know why the two haven't instantiate the GameObject how is associated with the corresponding button

CodePudding user response:

On the need to hang the unity script gameobject assignment
  • Related