private void GameOverlayToggle(GameOverlayActivated value)
 {
     if (value.Active)
     {
         clearColor = Color.OrangeRed;
         Console.WriteLine("Overlay activated");
     }
     else
     {
         clearColor = Color.LawnGreen;
         Console.WriteLine("Overlay closed");
     }
 }
示例#2
0
    private void OverlayToggle(GameOverlayActivated value)
    {
        // This method is called when the game overlay is hidden or shown
        // NOTE: The overlay may not work when a game is run in the Unity editor
        // Build the game and "publish" it to a local content server and then start the game via the
        // steam client to make the overlay work.

        if (value.Active)
        {
            UnityEngine.Debug.Log("Overlay shown");
        }
        else
        {
            UnityEngine.Debug.Log("Overlay closed");
        }
    }