↧
Answer by Severok
My working version void Run() { if (Input.GetKey(KeyCode.RightArrow)) { //Должна сыграть анимация бега вправо anim.SetFloat("Run", Mathf.Abs(runSpeed)); transform.eulerAngles = new Vector3(0, 0f, 0);...
View ArticleAnswer by Severok
void Update () { if (transform.position.x >= 0.8f && transform.position.x <= 1.2f) { Debug.Log ("test"); } So? And that's OK? -)
View Article