Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. // (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
  2.  
  3. using UnityEngine;
  4.  
  5. namespace HutongGames.PlayMaker.Actions
  6. {
  7.     [ActionCategory(ActionCategory.Material)]
  8.     [Tooltip("Gets the current quality level")]
  9.     public class GetQualitySetting : FsmStateAction
  10.     {
  11.         [RequiredField]
  12.         [Tooltip("Where to store the quality")]
  13.         public FsmInt qualityLevel;
  14.  
  15.         public override void OnEnter()
  16.         {
  17.             qualityLevel.Value = QualitySettings.GetQualityLevel ();
  18.             Finish();
  19.         }
  20.  
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement