示例#1
0
 private void LoseCarriable(LoseCarriableEvent e)
 {
     PlaySound("Play_LoseItem");
     if (!hitObjectSound && !isDialogue)
     {
         isDialogue = true;
         AkSoundEngine.PostEvent("Play_MusVO17", gameObject, (uint)AkCallbackType.AK_EndOfEvent, DialogueCallbackFunction, gameObject);
         hitObjectSound = true;
     }
 }
 /// <summary>
 /// Being called inside "DamageObstacle" after we have breaked the joint
 /// </summary>
 void LostCarriable(LoseCarriableEvent e)
 {
     numberOfLostCarriables++;
     carriableManagerScript.runningHeight -= carriableFallingOff.GetComponent <CarriablesDrag>().heightOfObject;
 }