コード例 #1
0
ファイル: AEvent.cs プロジェクト: davidas1798/P3_DavidArteaga
 // Start is called before the first frame update
 void Start()
 {
     collisionEvent         = GameObject.FindWithTag("Player").GetComponent <PlayerEventScript>();
     collisionEvent.aEvent += IncCount;
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     collisionEvent         = GameObject.FindWithTag("Player").GetComponent <PlayerEventScript>();
     collisionEvent.bEvent += PrintMessage;
 }