Exemple #1
0
 private void OnTriggerExit2D(Collider2D col)
 {
     Debug.Log("Exit");
     if (CommonAPI.IsRole(col.gameObject))
     {
         RemoveFromCanInteractRoleList(col.gameObject);
     }
 }
Exemple #2
0
 private void OnTriggerEnter2D(Collider2D col)
 {
     Debug.Log("Enter");
     if (CommonAPI.IsRole(col.gameObject))
     {
         AppendCanInteractRoleList(col.gameObject);
     }
 }