Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using AC;
- using JetBrains.Annotations;
- using UnityEngine;
- namespace Assets.Scripts.ACExtensions
- {
- public class PauseResume : MonoBehaviour
- {
- [SerializeField] private ActionList _interaction;
- [UsedImplicitly]
- private void Start()
- {
- StartCoroutine(PauseAndResume());
- }
- private IEnumerator PauseAndResume()
- {
- yield return new WaitForSeconds(1.0f);
- _interaction.Interact();
- yield return new WaitForSeconds(2.0f);
- _interaction.Pause();
- KickStarter.actionListManager.Resume(_interaction);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment