/// <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));
     }
 }
Exemple #2
0
 public void DeserializeAsset(AssetFile assetFile, StreamReader stream)
 {
     m_uiElement  = (UIElement)stream.ReadInt32();
     m_activation = (ActivationAction)stream.ReadInt32();
 }
Exemple #3
0
 public void DeserializeAsset(AssetFile assetFile, StreamReader stream)
 {
     m_sceneObject = new SerializedComponent(assetFile, stream);
     m_activation  = (ActivationAction)stream.ReadInt32();
 }