コード例 #1
0
    protected override void OnPlayEventMain()
    {
        base.OnPlayEventMain();

#if UNITY_EDITOR
        if (Application.isPlaying == false)
        {
            return;
        }
#endif

        if (_pManagerSound == null)
        {
            _pManagerSound = CManagerSound.instance;
        }

        if (_pManagerSound != null)
        {
            ProcPlaySound();

            _iLoopCountCurrent = _iLoopCount;
            _bIsPlaying        = true;
        }
        else
        {
            EventDelayExcuteCallBack(DoPlayEventTrigger, 0.1f);
        }
    }
コード例 #2
0
    // ========================================================================== //

    /* public - [Do] Function
     * 외부 객체가 호출                         */

    /* public - [Event] Function
     * 프랜드 객체가 호출                       */

    // ========================================================================== //

    /* protected - [abstract & virtual]         */

    /* protected - [Event] Function
     * 자식 객체가 호출                         */

    /* protected - Override & Unity API         */

    protected override void OnAwake()
    {
        base.OnAwake();

        _pManagerSound = CManagerSound.instance;

#if UNITY_EDITOR
        _strOriginName = name;
#endif
    }