Browse Source

Added Enable Object event handler

master
chrisgregan 10 years ago
parent
commit
9a05a55a22
  1. 18
      Assets/Fungus/FungusScript/EventHandlers/EnableObject.cs
  2. 8
      Assets/Fungus/FungusScript/EventHandlers/EnableObject.cs.meta

18
Assets/Fungus/FungusScript/EventHandlers/EnableObject.cs

@ -0,0 +1,18 @@
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[EventHandlerInfo("Scripting",
"Enable Object",
"The sequence will execute when the owner game object is enabled.")]
public class EnableObject : EventHandler
{
protected virtual void OnEnable()
{
ExecuteSequence();
}
}
}

8
Assets/Fungus/FungusScript/EventHandlers/EnableObject.cs.meta

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d2a66e013a2e04a8e9ff2ca1d536d668
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
Loading…
Cancel
Save