Hello, I’am trying to write a script for aircraft animations but it isn’t works so well. My code is ready but i don’t know how to write an algorithm, Can somebody help me ?
#pragma strict
var rot : float;
function Update() {
if (Input.acceleration.x > 0){
//Do animation or another script ? I don't know.
}
if (Input.acceleration.x < 0){
//Do animation or another script ? I don't know.
}
}
so what am i gonna do ?
@Alp,
Your post (as it appears now) isn’t something we can give you a quick answer for, and isn’t really appropriate for UnityAnswers. The UnityAnswers philosophy is:
“[Unity Answers] is a place to ask specific questions that have specific answers. The forum is a better place to post discussions and non-technical questions.”
It sounds like what you’re looking for is Unity training, rather than a specific answer. I would suggest visiting the following training websites to find the one that best helps you move forward. In addition to the sites below, you can always search YouTube, which has a large number of user-created Unity tutorials.