Exemplo n.º 1
0
 public override void OnTriggerEnter2D(Collider2D other)
 {
     if (other.ContainTag("Ceil") || other.ContainTag("PipeColl"))
     {
         PlayerEffectSoundManager.Instance.PlayColl();
         Controller.State = new DeadAirCollisionPS();
     }
 }
Exemplo n.º 2
0
 public void OnTriggerEnter2D(Collider2D other)
 {
     if (other.ContainTag("HorizontalPipe"))
     {
         _currentState = AnswerState.SHIFTING;
     }
 }
Exemplo n.º 3
0
 public override void OnTriggerEnter2D(Collider2D other)
 {
     if (other.ContainTag("Floor"))
     {
         Controller.State = new DeadFloorCollisionPS();
     }
 }
 public void OnTriggerStay2D(Collider2D player)
 {
     if (!_playerDetected && player.ContainTag("Player") && _coll.bounds.Contains(player.bounds))
     {
         _playerDetected = true;
         _horizontalPipeController.Invoke(HorizontalPipeEvent.PLAYER_ENTER);
     }
 }