Пример #1
0
 protected void OnTriggerExit(Collider other)
 {
     if (other.gameObject == gameController.boundOuter)
     {
         Bouncer.Bounce(body, other.transform, Bouncer.BounceTowards.Inwards);
     }
 }
Пример #2
0
    //void UpdateLineRenderer()
    //{
    //    for (int i = 0; i < lineJoints.Length; i++)
    //    {
    //        lineRenderer.SetPosition(i, lineJoints[i].position);
    //    }
    //}
    public void Die()
    {
        AudioManager.activeManager.PlayClipFromLibrary(2, transform.position, false);
        GameManager.active.State = GameManager.GameState.GAME_OVER;

        headBouncer.Bounce();
        bodyBouncer.Bounce();
        tailBouncer.Bounce();
    }
Пример #3
0
 void Bouncing()
 {
     if (_currentBouncer != null)
     {
         if (_inBouncer && _jumpDown && _controller.Ground())
         {
             _currentBouncer.Bounce(_controller.GetRigidbody());
         }
     }
 }