using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using UnityEngine; public class ActionObject : Motion { public ActionDoor actionDoor; void Start() { } // Update is called once per frame public void StartAnim() { StartCoroutine(base.PlayAndNext()); } public override IEnumerator Play() { if (actionDoor != null) { actionDoor.Play(); } yield return null; } public override IEnumerator ReversePlay() { if (actionDoor != null) { actionDoor.Play(); } yield return null; } public override void Initialize() { base.Initialize(); } }