//EnemyXP
    //EnemyLevel & XP

    // Use this for initialization
    void Awake()
    {
        player     = FindObjectOfType <MayaScript> ();
        _enemyAnim = GetComponent <Animator> ();
        _agent     = GetComponent <NavMeshAgent> ();
//		enemyAudio = GetComponent <AudioSource> ();
        _enemyTransform = transform;
        gameObject.tag  = "Enemy";
        _timer          = 0.0f;

        setEnemyAttributes();
    }
    //EnemyXP
    //EnemyLevel & XP
    // Use this for initialization
    void Awake()
    {
        player = FindObjectOfType<MayaScript> ();
        _enemyAnim = GetComponent<Animator> ();
        _agent = GetComponent<NavMeshAgent> ();
        //		enemyAudio = GetComponent <AudioSource> ();
        _enemyTransform = transform;
        gameObject.tag = "Enemy";
        _timer = 0.0f;

        setEnemyAttributes ();
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     newone = true;
     smoke = true;
     maya = GameObject.Find("Maya").GetComponent<MayaScript>();
 }
Example #4
0
 void Awake()
 {
     maya = GetComponent<MayaScript> ();
 }
Example #5
0
 // Use this for initialization
 void Start()
 {
     maya = GameObject.Find("Maya").GetComponent<MayaScript>();
 }
 void Awake()
 {
     maya = GetComponent <MayaScript> ();
 }
Example #7
0
    void Start()
    {
        instance	= this;
        agent		= GetComponent<NavMeshAgent>();
        Weapon = GameObject.Find ("W_SwordGame");
        weaponHbox	= Weapon.GetComponent<BoxCollider>();

        healthBar = healthBar.GetComponent<Slider>();
        xpBar = xpBar.GetComponent<Slider>();
    }