Commented main menu files
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user