Beispiel #1
0
 void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.tag == "Zid" && GameScript.gameState != GameScript.GameStates.wallHit)
     {
         SpecialEffectsScript.PlayAttackSound();
         WallScript.disableWall();
         GameScript.gameState = GameScript.GameStates.wallHit;
         GameScript.advanceLevel(0.1f);
         Debug.Log("Lovit");
     }
 }