made viewscript universal

changed array to take in public game objects