private void Awake() { _animator = GetComponent< Animator >(); _companionScript = GetComponent< CompanionScript >(); _hashes = GetComponent< CharacterAnimationHashes >(); var obj = Instantiate( emoticonObject, head.position + Vector3.up, Quaternion.identity ) as GameObject; _emoticon = obj.GetComponent< EmoticonScript >(); _emoticon.transform.parent = transform; }
protected virtual void Awake() { _animator = GetComponent< Animator >(); _hashes = GetComponent< CharacterAnimationHashes >(); _animator.SetLayerWeight(1, 1); }