private void OnTriggerEnter(Collider target) { if (target.CompareTag(Tags.PLAYER_TAG)) { rotatingPlatform.ActivateRotation(); } }
void OnTriggerEnter(Collider other) { if (other.CompareTag(TagManager.PLAYER)) { m_RotatingPlatform.ActivateRotation(); m_SoundFX.PlayAudio(true); } }
} // move platform public void ActivateMovement() { can_Move = true; // play sound fx soundFX.PlayAudio(true); // rotate if (activateRotation) { rotatePlatform.ActivateRotation(); } }
// Provide the functionality of movement to the platform public void ActivateMovementToFinal() { m_CanMove = true; // play sound m_PlatformSoundFX.PlayAudio(true); // rotate if (m_ActivateRotation) { m_RotatingPlatform.ActivateRotation(); } }