Update ScriptTemplate.cs

This commit is contained in:
LcrW
2021-05-10 18:30:46 +01:00
parent 62b095dde6
commit 08a9a00330

View File

@@ -4,23 +4,30 @@ using FlaxEngine;
namespace %namespace%
{
/// <summary>
/// %class% Script.
/// </summary>
public class %class% : Script
{
/// <inheritdoc/>
public override void OnStart()
{
// Here you can add code that needs to be called when script is created, just before the first game update
}
/// <inheritdoc/>
public override void OnEnable()
{
// Here you can add code that needs to be called when script is enabled (eg. register for events)
}
/// <inheritdoc/>
public override void OnDisable()
{
// Here you can add code that needs to be called when script is disabled (eg. unregister from events)
}
/// <inheritdoc/>
public override void OnUpdate()
{
// Here you can add code that needs to be called every frame