private void Awake() { startPos = transform.position; initialMovement = smoothMovement; // activate doors doorController = GetComponent <DoorController>(); // add sound soundFx = GetComponent <PlatfromSoundFX>(); if (activateRotation) { rotatePlatform = GetComponent <RotatePlatform>(); } }
private void Awake() { initialRotation = transform.rotation; soundFx = GetComponent <PlatfromSoundFX>(); }