12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace ChivaXR.Op
- {
- /// <summary>
- /// 该操作类型激活后直接执行
- /// </summary>
- public abstract class OperationData_PlayMode : OperationDataBase
- {
- public override OperationDataType OperationType { get { return OperationDataType.Play; } }
- /// <summary>
- /// 激活后执行播放
- /// </summary>
- public abstract void ActiveToPlay();
- protected override void PlayOneShot()
- {
- ActiveToPlay();
- OpValue = 1;
- }
- protected override void CheckOperationDataDisActive()
- {
- switch (operationDisActioveMode)
- {
- case OperationDisActiveMode.once:
- OperationStatus = OperationDataStatus.InActive;
- break;
- case OperationDisActiveMode.loop:
- OpValue = 0;
- break;
- }
- }
- }
- }
|