Пример #1
0
 // Use this for initialization
 void Start()
 {
     currentState = PlayerState.walk;
     animator     = GetComponent <Animator>();
     myRigidbody  = GetComponent <Rigidbody2D>();
     StartCoroutine(showStarttext());
     animator.SetFloat("moveX", 0);
     AntiHack.RestartTimer(true);
     animator.SetFloat("moveY", -1);
 }