From 72e4c550e16d32280d7926c8e4fee58e8f533e04 Mon Sep 17 00:00:00 2001 From: Ashley Muncaster Date: Thu, 13 Apr 2017 22:00:39 +0100 Subject: [PATCH] Removal of lingering compile warnings. --- Assets/Scripts/Commanders/BombBinderCommander.cs | 1 - Assets/Scripts/Commanders/BombCommander.cs | 3 --- Assets/Scripts/Commanders/FreeplayCommander.cs | 3 --- Assets/Scripts/Helpers/InputInterceptor.cs | 2 ++ 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Assets/Scripts/Commanders/BombBinderCommander.cs b/Assets/Scripts/Commanders/BombBinderCommander.cs index 4174bb2..03edb93 100644 --- a/Assets/Scripts/Commanders/BombBinderCommander.cs +++ b/Assets/Scripts/Commanders/BombBinderCommander.cs @@ -289,7 +289,6 @@ private IEnumerator ForceHeldRotation(float duration) public readonly MonoBehaviour Selectable = null; public readonly MonoBehaviour FloatingHoldable = null; private readonly MonoBehaviour SelectableManager = null; - private readonly CoroutineCanceller CoroutineCanceller = null; #endregion #region Private Static Fields diff --git a/Assets/Scripts/Commanders/BombCommander.cs b/Assets/Scripts/Commanders/BombCommander.cs index ffb1b99..cb60785 100644 --- a/Assets/Scripts/Commanders/BombCommander.cs +++ b/Assets/Scripts/Commanders/BombCommander.cs @@ -169,8 +169,6 @@ public IEnumerator ShowEdgework() yield return holdCoroutine.Current; } - Transform baseTransform = (Transform)_getBaseHeldObjectTransformMethod.Invoke(SelectableManager, null); - float initialZSpin = _heldFrontFace ? 0.0f : 180.0f; IEnumerator firstEdge = DoFreeRotate(initialZSpin, 0.0f, 90.0f, 0.0f, 0.3f); @@ -311,7 +309,6 @@ private IEnumerator DoFreeRotate(float initialZSpin, float initialPitch, float t public readonly MonoBehaviour Selectable = null; public readonly MonoBehaviour FloatingHoldable = null; private readonly MonoBehaviour SelectableManager = null; - private readonly CoroutineCanceller CoroutineCanceller = null; #endregion #region Private Static Fields diff --git a/Assets/Scripts/Commanders/FreeplayCommander.cs b/Assets/Scripts/Commanders/FreeplayCommander.cs index d723740..96c18e8 100644 --- a/Assets/Scripts/Commanders/FreeplayCommander.cs +++ b/Assets/Scripts/Commanders/FreeplayCommander.cs @@ -37,7 +37,6 @@ static FreeplayCommander() _selectableType = ReflectionHelper.FindType("Selectable"); _handleSelectMethod = _selectableType.GetMethod("HandleSelect", BindingFlags.Public | BindingFlags.Instance); - _handleDeselectMethod = _selectableType.GetMethod("HandleDeselect", BindingFlags.Public | BindingFlags.Instance); _onInteractEndedMethod = _selectableType.GetMethod("OnInteractEnded", BindingFlags.Public | BindingFlags.Instance); _selectableManagerType = ReflectionHelper.FindType("SelectableManager"); @@ -301,7 +300,6 @@ private IEnumerator ForceHeldRotation(float duration) public readonly MonoBehaviour Selectable = null; public readonly MonoBehaviour FloatingHoldable = null; private readonly MonoBehaviour SelectableManager = null; - private readonly CoroutineCanceller CoroutineCanceller = null; #endregion #region Private Static Fields @@ -329,7 +327,6 @@ private IEnumerator ForceHeldRotation(float duration) private static Type _selectableType = null; private static MethodInfo _handleSelectMethod = null; - private static MethodInfo _handleDeselectMethod = null; private static MethodInfo _onInteractEndedMethod = null; private static Type _selectableManagerType = null; diff --git a/Assets/Scripts/Helpers/InputInterceptor.cs b/Assets/Scripts/Helpers/InputInterceptor.cs index c309473..8a5c967 100644 --- a/Assets/Scripts/Helpers/InputInterceptor.cs +++ b/Assets/Scripts/Helpers/InputInterceptor.cs @@ -19,6 +19,7 @@ public static void EnableInput() } catch (Exception ex) { + Debug.LogException(ex); } } } @@ -33,6 +34,7 @@ public static void DisableInput() } catch (Exception ex) { + Debug.LogException(ex); } } }