void Awake()
    {
        //sets variables
        _health = 3.0f;

        _actions = GetComponent <buttonControl_script> ();

        _spawnManager = GameObject.Find("SpawnManager");
    }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        meshNav    = GetComponent <NavMeshAgent>();
        enemySound = GetComponent <AudioSource>();
        enemyAnim  = GetComponent <buttonControl_script>();

        if (gameObject.name == "mummy@idle01")
        {
            enemyAnim.Idle();
        }
    }