Beispiel #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag(cubeTag))
     {
         OnLoseContext?.Invoke(transform);
     }
 }
Beispiel #2
0
 private void CheckVoidCollision()
 {
     if (!Physics.Raycast(transform.position, Vector3.down, 100))
     {
         OnLoseContext?.Invoke(transform);
     }
 }