コード例 #1
0
    public void OnAddWallObject(float time)
    {
        if (ClipInfo.ClipTimeSize == 0)
        {
            return;
        }

        string wallObjectId = _currentWallObject != null ? _currentWallObject.WallObjectId : "WP.C33CUC";

        _currentWallObject = _songManager.CreateWallObject(wallObjectId, time, true, this);
        _currentWallObject.GetComponent <Transform>().Find("MarkLine").gameObject.SetActive(_zoom >= WallMarklineVisibleAtZoomLevel);
        _currentWallObject.GetComponent <Transform>().Find("Toggle/Wall Id").gameObject.SetActive(_zoom >= WallIdVisibleAtZoomLevel);

        // _objectsLibraryManager.UpdateWallObjectSprite(_currentWallObject.WallObjectId);
        addWallObjectToSelectedList(_currentWallObject);
        OnWallObjectClicked(_currentWallObject);
    }