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"); }