Angular Typescript Check If Object Is Active Unity