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