private void HitByWind(StartWindEvent e) { if (!windPlayed && !isDialogue) { isDialogue = true; AkSoundEngine.PostEvent("Play_MusVO5", gameObject, (uint)AkCallbackType.AK_EndOfEvent, DialogueCallbackFunction, gameObject); windPlayed = true; } }
public void StartWind(StartWindEvent e) { movementController.wind = true; movementController.windDir = e.windDir; movementController.windForce = e.windForce; }