public void SetStatus(int dir, bool enabled) { Status[dir] = enabled; if (neighbourManager != null) { GetComponent <TileObject>().UpdateSprite(); neighbourManager.NotifyMyNeighbour(dir); } }
public void SetStatus(int dir, bool enabled) { Status[dir] = enabled; if (neighbourManager != null) { //needs check because of inspector changes GetComponent <TileObject>().UpdateSprite(); neighbourManager.NotifyMyNeighbour(dir); } }