// // Update is called once per frame void Awake() { if (player == null) { player = GameObject.FindGameObjectWithTag("Player"); } ph = player.GetComponent <plearhealth> (); eh.GetComponent <enmyhealth> (); }
// // Update is called once per frame void Awake() { if (player == null) { player = GameObject.FindGameObjectWithTag("Player"); } ph = player.GetComponent <plearhealth> (); eh.GetComponent <enmyhealth> (); }