Ejemplo n.º 1
0
    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");
    }
Ejemplo n.º 2
0
    public void Start()
    {
        Debug.Log("MovesAPIRequests Start called");

        jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> ();
        JSONData    = jsonDataObj.JSONData;

        dateObj = GameObject.Find("DateObject").GetComponent <DateClass> ();
    }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 public void Awake()
 {
     movesAPIObj = GameObject.Find("MovesAPIRequests").GetComponent <MovesAPIRequests> ();
     jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> ();
 }
Ejemplo n.º 5
0
 public void Start()
 {
     APIObj      = GameObject.Find("APIRequests").GetComponent <APIRequests> ();
     jsonDataObj = GameObject.Find("JSONDataObject").GetComponent <JSONDataObject> ();
 }