Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     collisionEvent         = GameObject.FindWithTag("Player").GetComponent <PlayerEventScript>();
     collisionEvent.aEvent += IncCount;
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     collisionEvent         = GameObject.FindWithTag("Player").GetComponent <PlayerEventScript>();
     collisionEvent.bEvent += PrintMessage;
 }