Пример #1
0
    public void SetOnionSkinMode(OnionSkinMode onionSkinMode)
    {
        _onionSkinMode = onionSkinMode;
        PlayerPrefs.SetInt("onionSkinMode", (int)_onionSkinMode);

        if (_onionSkinMode == OnionSkinMode.None)
        {
            _editor.OnionSkinString = "";
        }
        else if (_onionSkinMode == OnionSkinMode.Previous)
        {
            _editor.OnionSkinString = "<--ONION";
        }
        else if (_onionSkinMode == OnionSkinMode.Next)
        {
            _editor.OnionSkinString = "ONION-->";
        }
    }
Пример #2
0
    public void SetOnionSkinMode(OnionSkinMode onionSkinMode)
    {
        _onionSkinMode = onionSkinMode;
        PlayerPrefs.SetInt("onionSkinMode", (int)_onionSkinMode);

        if(_onionSkinMode == OnionSkinMode.None)
            _editor.OnionSkinString = "";
        else if(_onionSkinMode == OnionSkinMode.Previous)
            _editor.OnionSkinString = "<--ONION";
        else if(_onionSkinMode == OnionSkinMode.Next)
            _editor.OnionSkinString = "ONION-->";
    }