diff --git a/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ExitGame.cs b/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ExitGame.cs index bd3dbb6..af722ad 100644 --- a/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ExitGame.cs +++ b/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ExitGame.cs @@ -1,13 +1,38 @@ -using System.Collections; -using System.Collections.Generic; +/** + * @file + * + * @author Mohamad Kadou + * + * @package Assets.Scripts.MainMenuAndLobby.MainMenu + */ using UnityEngine; using UnityEngine.UI; +/** + * @section DESCRIPTION + * + * Class contains functionality to exit application. + */ public class ExitGame : MonoBehaviour { + //--------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // Public values + + //--------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // Private values + + //--------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // Public funtions + + /** + * Quits application. + */ public void QuitApplication() { //UnityEditor.EditorApplication.isPlaying = false; Application.Quit(); } + + //--------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // Private functions } diff --git a/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ToggleVisibilityLabel.cs b/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ToggleVisibilityLabel.cs index b033b07..3cb3dc5 100644 --- a/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ToggleVisibilityLabel.cs +++ b/Space4x/Assets/Scripts/MainMenuAndLobby/MainMenu/ToggleVisibilityLabel.cs @@ -1,21 +1,34 @@ -using System.Collections; -using System.Collections.Generic; +/** + * @file + * + * @author Mohamad Kadou + * + * @package Assets.Scripts.MainMenuAndLobby.MainMenu + */ using UnityEngine; +/** + * @section DESCRIPTION + * + * @todo Should let label blink, but doesn't work at the moment. + */ public class ToggleVisibilityLabel : MonoBehaviour { - // Start is called before the first frame update + // + + /** + * Start is called before the first frame update + * + * @todo Should call @see ToggleVisibility() each second. + */ void Start() { InvokeRepeating("ToggleVisibility", 0.0f, 1.0f); } - // Update is called once per frame - void Update() - { - - } - + /** + * @todo should toggle visiblity each second, but doesn't work. Probably enabled wrong attribute? + */ private void ToggleVisibility() { this.enabled = !this.enabled;