/// <summary> /// Cache the component references. /// </summary> protected override void Awake() { base.Awake(); m_Inventory = GetComponent <Inventory>(); m_HeightChange = GetComponent <HeightChange>(); }
/// <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); }