void Update() { bool getFound = motor.GetFoundTarget(); if (getFound != foundState) { foundState = getFound; if (foundState) { sprAnim.Play("enemy/wand", 0); } else { sprAnim.Play("enemy/scan", 0); } } }