using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class Bush : MonoBehaviour
{
public Transform TransformCollision;
public float Radius;
public LayerMask WhatIsPlayer;
private Animator _animator;
private bool _isCollision;
void Start(){
_animator = GetComponent<Animator>();
}
void OnTriggerEnter2D(Collider2D Collid){
Debug.Log($"New tag is - {Collid.gameObject.tag}");
if (Collid.gameObject.tag == "Player"){
_animator.SetBool("IsIdle", false);
} else {
_animator.SetBool("IsIdle", true);
}
}
}