示例#1
0
 void Start()
 {
     weather   = WeatherAPI.FindObjectOfType <WeatherAPI>();
     windspeed = weather.wind;
     Force.x   = windspeed;
     Debug.Log(windspeed);
 }
示例#2
0
文件: SkyAPI.cs 项目: hafewa/Weather
    // Use this for initialization
    void Start()
    {
        //get WeatherAPI
        weather = WeatherAPI.FindObjectOfType <WeatherAPI>();

        Debug.Log("found sky API");
    }
示例#3
0
 // Use this for initialization
 // Use this for initialization
 void Start()
 {
     knowsWeather = false;
     //find the text of this component
     windText = GameObject.Find("WindText").GetComponent <Text>();
     //gets the weather from the API
     weather = WeatherAPI.FindObjectOfType <WeatherAPI>();
 }
示例#4
0
 // Use this for initialization
 void Start()
 {
     weather = WeatherAPI.FindObjectOfType <WeatherAPI>();
 }
示例#5
0
 // Use this for initialization
 // Use this for initialization
 void Start()
 {
     knowsWeather = false;
     tempText     = GameObject.Find("Condition").GetComponent <Text>();
     weather      = WeatherAPI.FindObjectOfType <WeatherAPI>();
 }
示例#6
0
 void Start()
 {
     tempText = GameObject.Find("taqi").GetComponent <Text>();
     weather  = WeatherAPI.FindObjectOfType <WeatherAPI>();
 }
示例#7
0
    // Use this for initialization
    void Start()
    {
        weather = WeatherAPI.FindObjectOfType <WeatherAPI>();

        Debug.Log("found chime API");
    }
 // Use this for initialization
 void Start()
 {
     weather = WeatherAPI.FindObjectOfType <WeatherAPI>();
     lt      = GetComponent <Light>();
 }
示例#9
0
 void Awake()
 {
     sky    = WeatherAPI.FindObjectOfType <SkyAPI>();
     chimes = WeatherAPI.FindObjectOfType <ChimeController>();
 }
示例#10
0
 // Use this for initialization
 // Use this for initialization
 void Start()
 {
     knowsWeather = false;
     tempText     = GameObject.Find("MinMaxCelcius").GetComponent <Text>();
     weather      = WeatherAPI.FindObjectOfType <WeatherAPI>();
 }
示例#11
0
 // Use this for initialization
 // Use this for initialization
 void Start()
 {
     knowsWeather = false;
     cityText     = GameObject.Find("City").GetComponent <Text>();
     weather      = WeatherAPI.FindObjectOfType <WeatherAPI>();
 }