Пример #1
0
        /// <summary>
        /// Cache the component references and initialize the default values.
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            m_Rigidbody = GetComponent <Rigidbody>();
            m_Swim      = GetComponent <Swim>();
        }
Пример #2
0
        /// <summary>
        /// Cache the component references and initialize the default values.
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            m_Rigidbody = GetComponent <Rigidbody>();
            m_Hang      = GetComponent <Hang>();
            m_Swim      = GetComponent <Swim>();

            m_MatchTargetWeightMask = new MatchTargetWeightMask(Vector3.one, 0);
        }