public void Init(AudioContainer audioContainer) { if (audioContainer == null) { return; } footstepLight = audioContainer.GetEvent("FootstepLight"); footstepSlide = audioContainer.GetEvent("FootstepSlide"); footstepWalk = audioContainer.GetEvent("FootstepWalk"); footstepRun = audioContainer.GetEvent("FootstepRun"); footstepJump = audioContainer.GetEvent("FootstepJump"); footstepLand = audioContainer.GetEvent("FootstepLand"); clothesRustleShort = audioContainer.GetEvent("ClothesRustleShort"); clap = audioContainer.GetEvent("ExpressionClap"); throwMoney = audioContainer.GetEvent("ExpressionThrowMoney"); blowKiss = audioContainer.GetEvent("ExpressionBlowKiss"); }
private void Start() { var characterController = DCLCharacterController.i; if (characterController != null) { characterController.OnJump += OnJump; characterController.OnHitGround += OnLand; characterController.OnMoved += OnWalk; } AudioContainer ac = GetComponent <AudioContainer>(); footstepJump = ac.GetEvent("FootstepJump"); footstepLand = ac.GetEvent("FootstepLand"); footstepWalk = ac.GetEvent("FootstepWalk"); footstepRun = ac.GetEvent("FootstepRun"); clothesRustleShort = ac.GetEvent("ClothesRustleShort"); }
private void Start() { DCLCharacterController dclCharacterController = transform.parent.GetComponent <DCLCharacterController>(); if (dclCharacterController != null) { dclCharacterController.OnJump += OnJump; dclCharacterController.OnHitGround += OnLand; dclCharacterController.OnMoved += OnWalk; } AudioContainer ac = GetComponent <AudioContainer>(); footstepJump = ac.GetEvent("FootstepJump"); footstepLand = ac.GetEvent("FootstepLand"); footstepWalk = ac.GetEvent("FootstepWalk"); footstepRun = ac.GetEvent("FootstepRun"); clothesRustleShort = ac.GetEvent("ClothesRustleShort"); }
private void Start() { AudioContainer ac = GetComponent <AudioContainer>(); footstepJump = ac.GetEvent("FootstepJump"); footstepLand = ac.GetEvent("FootstepLand"); footstepWalk = ac.GetEvent("FootstepWalk"); footstepRun = ac.GetEvent("FootstepRun"); clothesRustleShort = ac.GetEvent("ClothesRustleShort"); // Lower volume of jump/land/clothes footstepJump.source.volume = footstepJump.source.volume * 0.5f; footstepLand.source.volume = footstepLand.source.volume * 0.5f; clothesRustleShort.source.volume = clothesRustleShort.source.volume * 0.5f; if (avatarAnimatorLegacy != null) { blackBoard = avatarAnimatorLegacy.blackboard; } globalRendererIsReady = CommonScriptableObjects.rendererState.Get(); CommonScriptableObjects.rendererState.OnChange += OnGlobalRendererStateChange; }