void Awake() { // Setup references player = GameObject.FindGameObjectWithTag("Player").transform; playerHealth = player.GetComponent <SandCharHealth>(); enemyHealth = GetComponent <SandEnemyHealth>(); nav = GetComponent <NavMeshAgent>(); }
void Awake() { // Setup references player = GameObject.FindGameObjectWithTag("Player"); charHealth = player.GetComponent <SandCharHealth>(); //enemyHealth = GetComponent<SandEnemyHealth>(); //anim = GetComponent<Animator>(); }