K0TlK, не помогло ни то, ни то
когда смотрю влево ошибка:
NullReferenceException: Object reference not set to an instance of an object
Player.Flip () (at Assets/Scripts/Player.cs:73)
Player.Update () (at Assets/Scripts/Player.cs:58)
K0TlK, Вроде сделал так, как сказали вы
но ошибка не пропала
Вот код Player
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public ControlType controlType;
public Joystick joystick;
public float speed;
когда смотрю влево ошибка:
NullReferenceException: Object reference not set to an instance of an object
Player.Flip () (at Assets/Scripts/Player.cs:73)
Player.Update () (at Assets/Scripts/Player.cs:58)