using UnityEngine; namespace Nullframes.Intrigues.Demo { public class OnRuntimeActorCreated_Demo : IRuntime { [Note("With this sample script, we access the OnRuntimeActorCreated method.\nThe OnRuntimeActorCreated method is called only when a RuntimeActor is created.\n\nIn this example, we add the DemoCharacter component, which is found in every actor, to the GameObject where the RuntimeActor is attached.")] public bool ok; protected override void OnRuntimeActorCreated(Actor runtimeActor, GameObject actorGameObject) { actorGameObject.AddComponent(); } } }