We make a model of a bullet.1 set the parameters in 3d Max First, set customize->units setup metic to cm2 modelling, here we use plane, a plane,3 then Export4 Model settings in unity,Here is a parameter scale Factor, which is very important, the setting is small, resulting in unity may not be seen, big and inappropriate.5 Creating a material6 Create a shader, assign this shader to the material you just createdHere's the shader code belowShader"angrybots2/fx2
1, backstageif (Isset ($_get[' city ')) $_get[' city ']!= '){$url = ' http://m.weather.com.cn/data/';$city = (int) $_get[' city '];$json = file_get_contents ($url. $city. ') HTML ');Echo $json;Exit}
Gets the weather data for the http://m.weather.com.cn/data/and returns the JSON format data.
2. Front Desk
The returned JSON data:
Weatherinfo:{City: "Hangzhou"City_en: "Hangzhou"Cityid: "101210101"Date: ""Date_y: "August 12, 2012"Fchh: "18"FL1: "Less than Level 3"FL2: "Less than Level 3"FL3: "L
callback function and how to implement it:
This function is called when the pin has a jump change. First, it gets the value of the pin. This callback function is parameter-only. When it happens, it comes with a parameter. Indicates which pin triggered the event. This may have been handled in the library function, provided to the user program will not bother to see why. I think there might be a mechanism that has an interrupt status register that indicates which PIN has changed.
A function is ca
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.