2020using System . Collections . Generic ;
2121using IBM . Watson . DeveloperCloud . Logging ;
2222using IBM . Watson . DeveloperCloud . Utilities ;
23- using UnityStandardAssets . ImageEffects ;
2423
2524namespace IBM . Watson . DeveloperCloud . Camera
2625{
@@ -49,8 +48,6 @@ public class WatsonCamera : MonoBehaviour
4948
5049 private float m_CommandMovementModifier = 10.0f ;
5150
52- private Antialiasing m_AntiAliasing ;
53- private DepthOfField m_DepthOfField ;
5451 private bool m_DisableInteractivity = false ;
5552
5653 #endregion
@@ -121,15 +118,11 @@ public CameraTarget DefaultCameraTarget{
121118
122119 void OnEnable ( )
123120 {
124- EventManager . Instance . RegisterEventReceiver ( Constants . Event . ON_CAMERA_SET_ANTIALIASING , OnCameraSetAntiAliasing ) ;
125- EventManager . Instance . RegisterEventReceiver ( Constants . Event . ON_CAMERA_SET_DEPTHOFFIELD , OnCameraSetDepthOfField ) ;
126121 EventManager . Instance . RegisterEventReceiver ( Constants . Event . ON_CAMERA_SET_INTERACTIVITY , OnCameraSetTwoFingerDrag ) ;
127122 }
128123
129124 void OnDisable ( )
130125 {
131- EventManager . Instance . UnregisterEventReceiver ( Constants . Event . ON_CAMERA_SET_ANTIALIASING , OnCameraSetAntiAliasing ) ;
132- EventManager . Instance . UnregisterEventReceiver ( Constants . Event . ON_CAMERA_SET_DEPTHOFFIELD , OnCameraSetDepthOfField ) ;
133126 EventManager . Instance . UnregisterEventReceiver ( Constants . Event . ON_CAMERA_SET_INTERACTIVITY , OnCameraSetTwoFingerDrag ) ;
134127 }
135128
@@ -139,8 +132,6 @@ void OnDisable()
139132
140133 void Awake ( ) {
141134 mp_Instance = this ;
142- m_AntiAliasing = this . GetComponent < Antialiasing > ( ) ;
143- m_DepthOfField = this . GetComponent < DepthOfField > ( ) ;
144135 }
145136
146137 void Start ( ) {
@@ -211,32 +202,6 @@ public void DragTwoFinger(System.Object[] args)
211202
212203 #region Camera Events Received from Outside - Set default position / Move Left - Right - Up - Down / Zoom-in-out
213204
214- public void OnCameraSetAntiAliasing ( System . Object [ ] args )
215- {
216- if ( args != null && args . Length == 1 && args [ 0 ] is bool )
217- {
218- bool valueSet = ( bool ) args [ 0 ] ;
219-
220- if ( m_AntiAliasing != null )
221- {
222- m_AntiAliasing . enabled = valueSet ;
223- }
224- }
225- }
226-
227- public void OnCameraSetDepthOfField ( System . Object [ ] args )
228- {
229- if ( args != null && args . Length == 1 && args [ 0 ] is bool )
230- {
231- bool valueSet = ( bool ) args [ 0 ] ;
232-
233- if ( m_DepthOfField != null )
234- {
235- m_DepthOfField . enabled = valueSet ;
236- }
237- }
238- }
239-
240205 public void OnCameraSetTwoFingerDrag ( System . Object [ ] args )
241206 {
242207 if ( args != null && args . Length == 1 && args [ 0 ] is bool )
0 commit comments