/// <summary> /// Get Zoom /// </summary> /// <param name="query">query</param> /// <returns>Zoom Window</returns> public override int GetZoomWindow(Query query) { /* Handle cases where you have multiple windows for a single table. * So far it is just the tables that have a PO Window defined. * For eg., Order, Invoice and Shipments * This will need to be expanded to add more tables if they have * multiple windows. */ int AD_Window_ID = ZoomTarget.GetZoomAD_Window_ID(_vInfo.tableName, _WindowNo, query.GetWhereClause(), GetCtx().IsSOTrx(_WindowNo), GetCtx()); return(AD_Window_ID); }
private void Start() { _rb = gameObject.AddComponent <Rigidbody>(); _rb.useGravity = false; GetComponent <SphereCollider>().isTrigger = true; PopTime = -1; populated = false; LifeForm = "Bacterie"; PA = Random.Range(0, 100); FC = Random.Range(0, 100); N0 = 10000000 + Random.Range(-500000, 500000); NB = Random.Range(0f, 8f); LifeExpectacy = Random.Range(0, 50); zoom = FindObjectOfType <ZoomTarget>(); _sun = GameObject.FindGameObjectWithTag("Sun"); Vector3 _dir = _sun.transform.position - transform.position; float _distance = _dir.magnitude; _velocity = VelocityStandardFactorForBasicMassSun / _distance; }