Ejemplo n.º 1
0
        private void InitDevIL()
        {
            m_importer = new ImageImporter();
            m_exporter = new ImageExporter();
            ImageState state = new ImageState();

            state.AbsoluteFormat   = DataFormat.BGRA;
            state.AbsoluteDataType = DataType.UnsignedByte;
            state.AbsoluteOrigin   = OriginLocation.UpperLeft;
            state.Apply();

            CompressionState comp = new CompressionState();

            comp.KeepDxtcData = true;
            comp.Apply();

            SaveState sstate = new SaveState();

            sstate.OverwriteExistingFile = true;
            sstate.Apply();
        }
Ejemplo n.º 2
0
    public void DoRestart()
    {
        if (moving)
        {
            return;
        }

        player.gameObject.SetActive(true);
        foreach (var item in deathScreen)
        {
            item.SetActive(false);
        }

        restartState.Apply(this);
        foreach (var item in undoStack)
        {
            item.Dispose();
        }
        undoStack.Clear();

        UpdateColliders();
    }