public static SetEnableAutoSelect ( bool enable ) : void | ||
enable | bool | /// true = enabled /// false = disables /// |
return | void |
public override void OnEnter() { EasyTouch.SetEnableAutoSelect(value.Value); if (!everyFrame) { Finish(); } }
void OnEnable() { EasyTouch.On_TouchDown += On_TouchDown; EasyTouch.SetEnableAutoSelect(true); EasyTouch.SetAutoUpdatePickedObject(false); LayerMask mask = EasyTouch.Get3DPickableLayer(); mask = mask | (1 << 9) | (1 << 10) | (1 << 11); EasyTouch.Set3DPickableLayer(mask); }
/// <summary> /// 载入场景完成 /// </summary> protected virtual void OnLoadedScene() { GameEvents.UIEvents.UI_Loading_Event.OnLoadingState.SafeInvoke(1, true); CameraManager.Instance.ResetMainCamera(); GameEvents.SceneEvents.OnEnterScene.SafeInvoke(); InputModule.Instance.Enable = true; EasyTouch.SetEnableAutoSelect(true); EasyTouch.instance.touchCameras[0].camera = Camera.main; EngineCoreEvents.InputEvent.OnOneFingerTouchup += OnTouchScreen; GameEvents.MainGameEvents.OnGameStatusChange += OnGameStatusChange; ActiveSceneEntities(); }
public virtual void Start() { EasyTouch.SetEnableAutoSelect(true); realType = GameObjectType.Obj_3D; if (GetComponent <Collider>()) { realType = GameObjectType.Obj_3D; } else if (GetComponent <Collider2D>()) { realType = GameObjectType.Obj_2D; } else if (GetComponent <CanvasRenderer>()) { realType = GameObjectType.UI; } switch (realType) { case GameObjectType.Obj_3D: LayerMask mask = EasyTouch.Get3DPickableLayer(); mask = mask | 1 << gameObject.layer; EasyTouch.Set3DPickableLayer(mask); break; //2D case GameObjectType.Obj_2D: EasyTouch.SetEnable2DCollider(true); mask = EasyTouch.Get2DPickableLayer(); mask = mask | 1 << gameObject.layer; EasyTouch.Set2DPickableLayer(mask); break; // UI case GameObjectType.UI: EasyTouch.instance.enableUIMode = true; EasyTouch.SetUICompatibily(false); break; } if (enablePickOverUI) { EasyTouch.instance.enableUIMode = true; EasyTouch.SetUICompatibily(false); } }
// Token: 0x0600028F RID: 655 RVA: 0x0000BF50 File Offset: 0x0000A350 public virtual void Start() { EasyTouch.SetEnableAutoSelect(true); this.realType = QuickBase.GameObjectType.Obj_3D; if (base.GetComponent <Collider>()) { this.realType = QuickBase.GameObjectType.Obj_3D; } else if (base.GetComponent <Collider2D>()) { this.realType = QuickBase.GameObjectType.Obj_2D; } else if (base.GetComponent <CanvasRenderer>()) { this.realType = QuickBase.GameObjectType.UI; } QuickBase.GameObjectType gameObjectType = this.realType; if (gameObjectType != QuickBase.GameObjectType.Obj_3D) { if (gameObjectType != QuickBase.GameObjectType.Obj_2D) { if (gameObjectType == QuickBase.GameObjectType.UI) { EasyTouch.instance.enableUIMode = true; EasyTouch.SetUICompatibily(false); } } else { EasyTouch.SetEnable2DCollider(true); LayerMask mask = EasyTouch.Get2DPickableLayer(); mask |= 1 << base.gameObject.layer; EasyTouch.Set2DPickableLayer(mask); } } else { LayerMask mask = EasyTouch.Get3DPickableLayer(); mask |= 1 << base.gameObject.layer; EasyTouch.Set3DPickableLayer(mask); } if (this.enablePickOverUI) { EasyTouch.instance.enableUIMode = true; EasyTouch.SetUICompatibily(false); } }
/// <summary> /// 载入场景完成 /// </summary> protected virtual void OnLoadedScene() { GameEvents.UIEvents.UI_Loading_Event.OnLoadingState.SafeInvoke(1, true); CameraManager.Instance.InitCameraController <GameCameraNew>(); CameraManager.Instance.ResetMainCamera(); GameEvents.SceneEvents.OnEnterScene.SafeInvoke(); InputModule.Instance.Enable = true; EasyTouch.SetEnableAutoSelect(true); EasyTouch.instance.touchCameras[0].camera = Camera.main; EngineCoreEvents.InputEvent.OnOneFingerTouchup += OnTouchScreen; EngineCoreEvents.InputEvent.OnPinIn += ZoomIn; EngineCoreEvents.InputEvent.OnPinOut += ZoomOut; EngineCoreEvents.InputEvent.OnSwipe += Swipe; //GameEvents.SceneEvents.Listen_GetExhibitPos += GetEntityPos; //GameEvents.SceneEvents.Listen_GetExhibitRotate += GetEntityRotate; FindingEntityCoords(); }
// Token: 0x0600025B RID: 603 RVA: 0x0000B16F File Offset: 0x0000956F private void Start() { EasyTouch.SetEnableAutoSelect(true); }
public void SetAutoSelect(bool value) { EasyTouch.SetEnableAutoSelect(value); }
public override void OnUpdate() { EasyTouch.SetEnableAutoSelect(value.Value); }
public override void OnEnter() { EasyTouch.SetEnableAutoSelect(enable.Value); Finish(); }