/// <summary>
        /// Initialize the default values.
        /// </summary>
        protected override void Awake()
        {
            base.Awake();
            m_MovementTypeSwitcher = GameObject.FindObjectOfType<MovementTypeSwitcher>();

            // Remember the positions/rotations so they can be restored when the character leaves the zone.
            m_DrunkAstronautPosition = m_DrunkAstronautCharacter.transform.position;
            m_DrunkAstronautRotation = m_DrunkAstronautCharacter.transform.rotation;
            m_GiantPosition = m_GiantCharacter.transform.position;
            m_GiantRotation = m_GiantCharacter.transform.rotation;

            ChangeSpringType(SpringType.Modern);
            m_DrunkAstronautCharacter.SetActive(false);
            m_GiantCharacter.SetActive(false);
        }
Beispiel #2
0
        /// <summary>
        /// Initialize the default values.
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            m_MovementTypeSwitcher = GameObject.FindObjectOfType <MovementTypeSwitcher>();
        }