public void Start() { Debug.Log("before Start dateString is :" + dateString); Debug.Log("starting in APIRequests"); // authButton = GameObject.Find ("AuthButton").GetComponent<Button>(); // apiButton = GameObject.Find ("APIButton").GetComponent<Button>(); // displayText = GameObject.Find("DisplayText").GetComponent<Text>(); jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> (); JSONData = jsonDataObj.JSONData; if (PlayerPrefs.GetString("CLIENT_ID") == "") { PlayerPrefs.SetString("CLIENT_ID", CLIENT_ID); } if (PlayerPrefs.GetString("CLIENT_SECRET") == "") { PlayerPrefs.SetString("CLIENT_SECRET", CLIENT_SECRET); } dateString = getCurrentDate(); Debug.Log("APIRequests Start Func dateString is:" + dateString); Debug.Log("end of start in APIRequests"); }
public void Start() { Debug.Log("MovesAPIRequests Start called"); jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> (); JSONData = jsonDataObj.JSONData; dateObj = GameObject.Find("DateObject").GetComponent <DateClass> (); }
public void Awake() { status = NOT_STARTED; theOcean = GameObject.Find("Ocean").GetComponent <OceanController>(); movesAPIObj = GameObject.Find("MovesAPIRequests").GetComponent <MovesAPIRequests> (); jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> (); dateObj = GameObject.Find("DateObject").GetComponent <DateClass> (); startDate = dateObj.getCurrentDateString(); }
public void Awake() { movesAPIObj = GameObject.Find("MovesAPIRequests").GetComponent <MovesAPIRequests> (); jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> (); }
public void Start() { APIObj = GameObject.Find("APIRequests").GetComponent <APIRequests> (); jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> (); }