Beispiel #1
0
    public void SetFrameRate(QUALITY quality)
    {
        switch (quality)
        {
        case QUALITY.QUALITY_LOW:
        {
            QualitySettings.vSyncCount  = 0;
            Application.targetFrameRate = 15;
        }
        break;

        case QUALITY.QUALITY_MID:
        {
            QualitySettings.vSyncCount  = 1;
            Application.targetFrameRate = 30;
        }
        break;

        case QUALITY.QUALITY_HIGH:
        {
            QualitySettings.vSyncCount  = 1;
            Application.targetFrameRate = -1;
        }
        break;
        }
    }
Beispiel #2
0
    public void SetQuality(QUALITY quality)
    {
        _quality = quality;
        switch (quality)
        {
        case QUALITY.QUALITY_LOW:
        {
            QualitySettings.anisotropicFiltering = AnisotropicFiltering.Disable;
            QualitySettings.pixelLightCount      = 2;
            QualitySettings.masterTextureLimit   = 1;

            //동그란 그림자 활성화
        }
        break;

        case QUALITY.QUALITY_MID:
        {
            QualitySettings.anisotropicFiltering = AnisotropicFiltering.Enable;
            QualitySettings.pixelLightCount      = 2;
            QualitySettings.masterTextureLimit   = 1;

            //실시간 그림자 켜기
        }
        break;

        case QUALITY.QUALITY_HIGH:
        {
            QualitySettings.anisotropicFiltering = AnisotropicFiltering.ForceEnable;
            QualitySettings.pixelLightCount      = 2;
            QualitySettings.masterTextureLimit   = 0;

            //실시간 그림자 켜기//내 캐릭터만 주변광 켜기
        }
        break;
        }
    }
Beispiel #3
0
 public void order(int quantity, CREDIT credit, QUALITY quality, DELIVERY deliveryTime)
 {
     throw new System.NotImplementedException();
 }
Beispiel #4
0
 public static extern HFONT CreateFont(int nHeight, int nWidth, int nEscapement, int nOrientation, int fnWeight, bool fdwItalic, bool fdwUnderline, bool fdwStrikeOut, Charset fdwCharSet,
                                       OUT_PRECIS fdwOutputPrecision, CLIP_PRECIS fdwClipPrecision, QUALITY fdwQuality, PitchAndFamily fdwPitchAndFamily, string lpszFace);
Beispiel #5
0
 public Tool()
 {
     this.kind    = TOOL_TYPE.HANDS;
     this.quality = QUALITY.LOW;
 }
Beispiel #6
0
 public void order(int quantity, CREDIT credit, QUALITY quality, DELIVERY deliveryTime)
 {
     throw new System.NotImplementedException();
 }
Beispiel #7
0
 public static extern IntPtr CreateFont(int nHeight, int nWidth, int nEscapement, int nOrientation, FW fnWeight,
                                        [MarshalAs(UnmanagedType.Bool)] bool fdwItalic, [MarshalAs(UnmanagedType.Bool)] bool fdwUnderline,
                                        [MarshalAs(UnmanagedType.Bool)] bool fdwStrikeOut, CHARSET fdwCharSet, OUTPRECIS fdwOutputPrecision,
                                        CLIP fdwClipPrecision, QUALITY fdwQuality, PITCH_FF fdwPitchAndFamily, string lpszFace);
Beispiel #8
0
		public static extern HFONT CreateFont(int nHeight, int nWidth, int nEscapement, int nOrientation, int fnWeight, bool fdwItalic, bool fdwUnderline, bool fdwStrikeOut, Charset fdwCharSet,
			OUT_PRECIS fdwOutputPrecision, CLIP_PRECIS fdwClipPrecision, QUALITY fdwQuality, PitchAndFamily fdwPitchAndFamily, string lpszFace);
Beispiel #9
0
 public static extern IntPtr CreateFont(int nHeight, int nWidth, int nEscapement, int nOrientation, FW fnWeight,
     [MarshalAs(UnmanagedType.Bool)] bool fdwItalic, [MarshalAs(UnmanagedType.Bool)] bool fdwUnderline,
     [MarshalAs(UnmanagedType.Bool)] bool fdwStrikeOut, CHARSET fdwCharSet, OUTPRECIS fdwOutputPrecision,
     CLIP fdwClipPrecision, QUALITY fdwQuality, PITCH_FF fdwPitchAndFamily, string lpszFace);