void Awake() { m_StartPosition = transform.position; m_InitialMovement = m_SmoothMovement; // activate doors m_DoorController = GetComponent <DoorController>(); // active sounds m_PlatformSoundFX = GetComponent <PlatformSoundFX>(); m_RotatingPlatform = GetComponent <RotatingPlatform>(); }
private void Awake() { startPosition = transform.position; initialMovement = smoothMovement; // activate doors doorController = GetComponent <DoorController>(); // add sound soundFX = GetComponent <PlatformSoundFX>(); if (activateRotation) { rotatePlatform = GetComponent <RotatingPlatform>(); } }
private void Awake() { initialRotation = transform.rotation; soundFX = GetComponent <PlatformSoundFX>(); }
private void Awake() { soundFX = GetComponent <PlatformSoundFX>(); }
void Awake() { m_InitialRotation = transform.rotation; m_SoundFX = GetComponent <PlatformSoundFX>(); }
void Awake() { m_RotatingPlatform = GetComponentInParent <RotatingPlatform>(); m_SoundFX = GetComponent <PlatformSoundFX>(); }
void Awake() { m_SoundFX = GetComponent <PlatformSoundFX>(); }