public void EvaStrike() { GameObject obj = MessageSystemGameBlock.ReturnNearestEnemy(); if (obj) { obj.GetComponent <Animator>().SetBool("IsDeath", true); } }