Posts by Flávio Mello • 1 point
3 posts
-
-1
votes2
answers83
viewsA: Error "Nullreferenceexception: Object Reference not set to an instance of an Object" in Unity
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Inimigo : MonoBehaviour { public Transform DetectaGround; public float distancia = 3f; public bool…
-
-1
votes2
answers1124
viewsA: c# - Unity - Error: Object Reference not set to an instance of an Object
using UnityEngine; using System.Collections; /*Código do script em c# vinculado à câmera para seguir o personagem (CameraFollow):/* public class CameraFollow : MonoBehaviour { public float xMargin =…
-
-3
votes4
answers520
viewsA: Diagonal movement Unity 5
using Unityengine; using System.Collections; public class Playercontrol : Monobehaviour { [Hideininspector] public bool facingRight = true; // To determine how the player is facing.…