コード例 #1
0
        /// <inheritdoc />
        public override void Enable()
        {
            base.Enable();

            this.groupActiveSetter = new GroupActiveSetter <bool>(
                this.GameObjects, this.Data,
                (gameObjectValue, isActive) => isActive);
            this.groupActiveSetter.Enable();
        }
コード例 #2
0
        /// <inheritdoc />
        public override void Enable()
        {
            base.Enable();

            this.groupActiveSetter = new GroupActiveSetter <TEnum>(
                this.GetGameObjects(), this.EnumValue,
                this.IsGameObjectActive);
            this.groupActiveSetter.Enable();
        }
コード例 #3
0
        /// <inheritdoc />
        public override void Disable()
        {
            base.Disable();

            if (this.groupActiveSetter != null)
            {
                this.groupActiveSetter.Disable();
                this.groupActiveSetter = null;
            }
        }