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