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