Added object stare logic to SampleSceneState.cs