public SalesforceSession sfController; //Reference via editor the gameObject that holds the SalesforceSession script public void DoSampleQuey() { List <string> fields = new List <string>(); fields.Add("Id"); fields.Add("name"); if (sfController.isLogged()) { sfController.QueryForAllRecordsOfType("Account", fields, true); } else { Debug.Log("YOU ARE NOT YET LOGGED!"); } }