void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "Boundary")
{
rigidbody.velocity = Vector3.zero;
this.gameObject.GetComponent<BaseAbility>().health = 10;
this.gameObject.GetComponent<BaseAbility>().baseKB = 10;
this.gameObject.transform.position = spawner.transform.position;
counter++;
}
if (other.gameObject.tag == "Side")
{
transform.Translate(0, 10, 0);
}
}