Beispiel #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>();
     }
 }
Beispiel #2
0
 void Start()
 {
     script = GetComponent <RotatePlatform>();
 }
Beispiel #3
0
 private void Awake()
 {
     rotatePlatform = GetComponentInParent <RotatePlatform>();
 }