void Start() { m_ScreenShotController = FindObjectOfType <ScreenShotController>(); Assert.IsNotNull(m_ScreenShotController); m_ScreenShotController.TryCreateScreenShotDir(); }
static async void ambiantColor() { KeyboardController keyboard = new KeyboardController(); IChroma ChromaInstance = await ColoreProvider.CreateNativeAsync(); while (true) { ScreenShotController screen = new ScreenShotController(); keyboard.changeKeyboardColor(screen.GetScreenAverageColor()); keyboard.applyKeyboardColor(ChromaInstance); } }