Вот код
""
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
private bool canMove = true;
Rigidbody2D rb;
Animator anim;
Use this for initialization
void Start () {
rb = GetComponent<Rigidbody2D>();…