Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        _navMeshAgent           = GetComponent <NavMeshAgent>();
        _characterFunctionality = GetComponent <CharacterFunctionality>();
        _rigidbody = GetComponent <Rigidbody>();

        _audioSource = GetComponent <AudioSource>();

        player = GameObject.FindWithTag("Player");

        saveSpeed = _navMeshAgent.speed;
        SetDestination();

        _fadeoutManager = GameObject.FindWithTag("FadeoutManager").GetComponent <FadeoutManager>();
    }
 // Use this for initialization
 void Awake()
 {
     motor         = GetComponent <CharacterMotor>();
     functionality = GetComponent <CharacterFunctionality>();
 }