Ejemplo n.º 1
0
    void Awake()
    {
        m_StartPosition   = transform.position;
        m_InitialMovement = m_SmoothMovement;

        // activate doors
        m_DoorController = GetComponent <DoorController>();

        // active sounds
        m_PlatformSoundFX  = GetComponent <PlatformSoundFX>();
        m_RotatingPlatform = GetComponent <RotatingPlatform>();
    }
    private void Awake()
    {
        startPosition   = transform.position;
        initialMovement = smoothMovement;

        // activate doors
        doorController = GetComponent <DoorController>();

        // add sound
        soundFX = GetComponent <PlatformSoundFX>();

        if (activateRotation)
        {
            rotatePlatform = GetComponent <RotatingPlatform>();
        }
    }
 private void Awake()
 {
     initialRotation = transform.rotation;
     soundFX         = GetComponent <PlatformSoundFX>();
 }
Ejemplo n.º 4
0
 private void Awake()
 {
     soundFX = GetComponent <PlatformSoundFX>();
 }
 void Awake()
 {
     m_InitialRotation = transform.rotation;
     m_SoundFX         = GetComponent <PlatformSoundFX>();
 }
Ejemplo n.º 6
0
 void Awake()
 {
     m_RotatingPlatform = GetComponentInParent <RotatingPlatform>();
     m_SoundFX          = GetComponent <PlatformSoundFX>();
 }
Ejemplo n.º 7
0
 void Awake()
 {
     m_SoundFX = GetComponent <PlatformSoundFX>();
 }