Beispiel #1
0
        /// <summary>
        /// Cache the component references.
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            m_Inventory    = GetComponent <Inventory>();
            m_HeightChange = GetComponent <HeightChange>();
        }
Beispiel #2
0
        /// <summary>
        /// Cache the component references and initialize the default values.
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            m_Rigidbody    = GetComponent <Rigidbody>();
            m_HeightChange = GetComponent <HeightChange>();

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