void Start() { behaviourScript = GetComponent <g_AIBehaviourScript>(); animationScript = GetComponent <g_AIAnimationScript>(); gunScript = GetComponent <g_AIGunScript>(); soundScript = GetComponent <g_AISoundScript>(); coverScript = GetComponent <g_AISetCoverNode>(); rotateScript = GetComponent <g_AIRotateToTarget>(); navmesh = GetComponent <NavMeshAgent>(); dissolveScript = GetComponent <CustomDissolve>(); meleeScript = GetComponent <G_AIMeleeScript>(); maxHealth = health; }
void Start() { m_hoverTarget = GameObject.Find("PlayerCamera").transform; movePosition = transform.position; rotationScript = GetComponent <g_AIRotateToTarget>(); }