Exemplo n.º 1
0
 void OnStateReady()
 {
     bgMusicToggle.SetIsOnWithoutNotify(GameStateManager.instance.IsMuted(Sound.SoundType.MUSIC));
     sfxToggle.SetIsOnWithoutNotify(GameStateManager.instance.IsMuted(Sound.SoundType.SFX));
     uiToggle.SetIsOnWithoutNotify(GameStateManager.instance.IsMuted(Sound.SoundType.UI));
     nicknameInput.text = GameStateManager.instance.PlayerNickname;
 }
 static public int SetIsOnWithoutNotify(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.Toggle self = (UnityEngine.UI.Toggle)checkSelf(l);
         System.Boolean        a1;
         checkType(l, 2, out a1);
         self.SetIsOnWithoutNotify(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Exemplo n.º 3
0
#pragma warning restore 0649

        /// <inheritdoc/>
        public override void Initialize()
        {
            var inputManager = ScenarioManager.Instance.GetExtension <InputManager>();

            UpdateCameraModeText();
            snapToLanesToggle.SetIsOnWithoutNotify(ScenarioManager.Instance.GetExtension <ScenarioMapManager>().LaneSnapping.SnappingEnabled);
            invertedXRotationToggle.SetIsOnWithoutNotify(inputManager.InvertedXRotation);
            invertedYRotationToggle.SetIsOnWithoutNotify(inputManager.InvertedYRotation);
        }
Exemplo n.º 4
0
 static int SetIsOnWithoutNotify(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Toggle obj = (UnityEngine.UI.Toggle)ToLua.CheckObject <UnityEngine.UI.Toggle>(L, 1);
         bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.SetIsOnWithoutNotify(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }