- Добавил систему диалогов - Создал классы Sequencer.cs и SequenceAction.cs для воссоздания последовательности действий - Добавил иеханику последовательности действий в Message.cs и MessageController.cs
22 lines
463 B
C#
22 lines
463 B
C#
using System;
|
|
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
namespace RR.Common.Behaviour
|
|
{
|
|
/// <summary>
|
|
/// Действие задержки
|
|
/// </summary>
|
|
[Serializable]
|
|
public class WaitAction : SequenceAction
|
|
{
|
|
[SerializeField] public float duration = 1f;
|
|
|
|
public override IEnumerator Execute(Sequencer sequencer, GameObject target)
|
|
{
|
|
yield return new WaitForSeconds(duration);
|
|
}
|
|
}
|
|
}
|
|
|