void Startimus() { if (grid.WolfSearching(this) == false) { WolfnewPos = grid.ClosestSheep(this); } else { WolfnewPos.x = Random.Range(0, 20); WolfnewPos.y = Random.Range(0, 20); } if (grid.SheepTargeted(WolfnewPos, this) == false) { WolfoldPos = currentWolfPos; currentWolfPos = WolfnewPos; } else { WolfnewPos = new Vector2(Random.Range(0, 20), Random.Range(0, 20)); WolfoldPos = currentWolfPos; currentWolfPos = WolfnewPos; } wolfStates = _states.hunting; }