namespace Zinnia.Association { using UnityEngine; using Zinnia.Extension; using Zinnia.Rule; /// /// Holds a collection to activate and/or deactivate based on the given . /// public class RuleAssociation : GameObjectsAssociation { [Tooltip("The RuleContainer to match the association with.")] [SerializeField] private RuleContainer rule; /// /// The to match the association with. /// public RuleContainer Rule { get { return rule; } set { rule = value; } } /// public override bool ShouldBeActive() { return Rule.Accepts(null); } } }