示例#1
0
    //public AudioClip TentekibouSE;

    void Start()
    {
        Door   = GameObject.Find("Door (1)");
        script = GetComponent <Door_Close>();
        //script = Door.GetComponent<AutomaticDoor>();
        //audioSource = GetComponent<AudioSource>();
    }
示例#2
0
    }                                         //扉の閉フラグ


    // Start is called before the first frame update
    public virtual void Start()
    {
        isOpening  = false;
        isClosing  = false;
        StartAngle = this.gameObject.transform.rotation.eulerAngles;

        var StateMachine = new CStateMachine <Door>();

        m_cStateMachineList.Add(StateMachine);

        var DoorOpen  = new Door_Open(this);
        var DoorClose = new Door_Close(this);

        m_cStateList.Add(DoorOpen);
        m_cStateList.Add(DoorClose);

        m_cStateMachineList[0].ChangeState(m_cStateList[(int)EDoorState.eClose]);
    }