private void Awake()
    {
        var companion = GameObject.FindWithTag("Companion");

        _companionScript = companion.GetComponent<CompanionScript>();
        _meshLink = GetComponent<OffMeshLink>();
    }
Beispiel #2
0
    protected virtual void Awake()
    {
        var player = GameObject.FindWithTag("Player");
        var companion = GameObject.FindWithTag("Companion");

        _gestureScript = player.GetComponent<GradientBasedGestureScript>();
        _player = player.GetComponentInChildren<AINode>();

        _companionScript = companion.GetComponent<CompanionScript>();
    }
    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;
    }