// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player"); aIEnemyControl = GetComponent <AIEnemyControl>(); thirdPersonEnemy = GetComponent <ThirdPersonEnemy>(); m_Animator = GetComponent <Animator>(); attackSFX = this.GetComponent <AudioSource>(); projectileToUse.SetActive(true); tp = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>(); gm = GameObject.FindGameObjectWithTag("gamemanager").GetComponent <gamemanager>(); }
// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player"); aIEnemyControl = GetComponent <AIEnemyControl>(); thirdPersonEnemy = GetComponent <ThirdPersonEnemy>(); m_Animator = GetComponent <Animator>(); attackSFX = GetComponent <AudioSource>(); FistCol = fistComponent; ArmCol = armComponent;//GameObject.FindGameObjectWithTag("Fist"); currentHealthPoints = maxHealthPoints; }
// Use this for initialization void Start() { anim = GetComponent <Animator>(); aiEnemy = GetComponent <AIEnemyControl>(); }