Commented main menu files

This commit is contained in:
Aaron Moser
2023-07-22 20:52:51 +02:00
parent aae7c2eee4
commit d8cdf0889b
2 changed files with 49 additions and 11 deletions

View File

@@ -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
}

View File

@@ -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;