You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
404 B
20 lines
404 B
10 years ago
|
using UnityEngine;
|
||
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Fungus
|
||
|
{
|
||
10 years ago
|
[EventHandlerInfo("",
|
||
10 years ago
|
"Object Enabled",
|
||
10 years ago
|
"The block will execute when the Flowchart game object is enabled.")]
|
||
10 years ago
|
[AddComponentMenu("")]
|
||
10 years ago
|
public class ObjectEnabled : EventHandler
|
||
10 years ago
|
{
|
||
|
protected virtual void OnEnable()
|
||
|
{
|
||
10 years ago
|
ExecuteBlock();
|
||
10 years ago
|
}
|
||
|
}
|
||
|
}
|