void Awake() { _move = GetComponent <move8> (); _chase = GetComponent <Chase8> (); _attack = GetComponent <attack8> (); _Bar = GameObject.Find(Bar_num).GetComponent <Image> (); }
void Start() { player = FindObjectOfType <move8> (); }