/// <summary> /// Configures the activation action based on the facade settings. /// </summary> public virtual void ConfigureActivationAction() { if (Facade.ActivationAction != null) { ActivationAction.RunWhenActiveAndEnabled(() => ActivationAction.ClearSources()); ActivationAction.RunWhenActiveAndEnabled(() => ActivationAction.AddSource(Facade.ActivationAction)); } }
public void DeserializeAsset(AssetFile assetFile, StreamReader stream) { m_uiElement = (UIElement)stream.ReadInt32(); m_activation = (ActivationAction)stream.ReadInt32(); }
public void DeserializeAsset(AssetFile assetFile, StreamReader stream) { m_sceneObject = new SerializedComponent(assetFile, stream); m_activation = (ActivationAction)stream.ReadInt32(); }