Beispiel #1
0
 private void Update()
 {
     if (isSoundsPlay)
     {
         sounds.CollisionWithPlatformPlay();
     }
 }
Beispiel #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Platform"))
     {
         foreach (var e in boxColliders)
         {
             e.enabled = false;
             foreach (var f in sphereColliders)
             {
                 f.enabled = false;
             }
         }
         isTouched = false;
         sounds.CollisionWithPlatformPlay();
         goldenCubeScore.DeductGoldenCubeScore();
         playerMoveController.enabled  = false;
         blockCreatorContoller.enabled = false;
         playerAnimator.SetBool("isMove", false);
         if (goldenCubeScore.goldenScore >= 1)
         {
             lifePrewiewAnimator.SetBool("isShow", true);
         }
     }
 }