열차 목업의 내부 확인용 프로젝트
smchoi
2024-07-24 ff74c0073046f0e086eb7d355950bda39937c92c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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();
    }
}