コード例 #1
0
 private void OnTriggerLeft(AreaTrigger2DEvent arg)
 {
     if (arg.Collider.tag == "Player")
     {
         Left.InvokeSafe(this);
         _playerInArea = false;
     }
 }
コード例 #2
0
 private void OnTriggerEntered(AreaTrigger2DEvent arg)
 {
     if (arg.Collider.tag == "Player")
     {
         Entered.InvokeSafe(this);
         _playerInArea = true;
     }
 }