List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
| using System.Collections.Generic; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEditor.Overlays; | |
| using UnityEditor.SceneManagement; | |
| using UnityEditor.Toolbars; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| using UnityEngine.UIElements; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.EditorTools; | |
| // Tagging a class with the EditorTool attribute and no target type registers a global tool. Global tools are valid for any selection, and are accessible through the top left toolbar in the editor. | |
| [EditorTool("Moving Particle Context")] |
| //----------- Example code ----------- | |
| float health = 5; | |
| CooldownManager.Cooldown(2, () => health++); //Delay health increment by 2 seconds | |
| CooldownManager.Cooldown(5, Shoot); //Invoke shoot in 5 seconds | |
| void Shoot () { } | |
| //If you dont want to use lambda's for functions with parameters you can overload the function like so: | |
| CooldownManager.Cooldown(2, Damage, 5); //Calls Damage() function with damageValue 5 after 2 seconds have passed |
Quer deixar o seu seu bate-papo de texto do Discord com um sabor diferente? Você está com sorte, pois este é um Guia de Markdown para o nosso amado Discord!. O Discord usa o Markdown, um sistema simples de formatação de texto simples que ajudará você a destacar suas frases. Veja como fazer isso! Apenas adicione alguns caráteres antes e depois de texto desejado para mudar o estilo! Vou te mostrar alguns exemplos ...
| A collection of useful C# extension methods for the Unity engine. |