Questions tagged as 'unity-5'

1
answer

The camera does not follow the character UNITY 5

Unity Error Look rotation viewing vector is zero UnityEngine.Quaternion:LookRotation(Vector3 Full Code using UnityEngine; public class PlayerMovement : MonoBehaviour { public float speed = 6f; Vector3 movement...
asked by 23.04.2016 / 20:37
2
answers

Different Heel size on Android Unity 5 devices

I created a game type Infinite Runner that works correctly in the Game tab of Unity 5 but in android when I perform Jump in my character it has a rise always of different size, how can I solve this problem?    OBS: The app was tested...
asked by 08.01.2016 / 16:34
1
answer

Drag and drop Unity

I'm trying to develop a simple Android game in Unity, with drag and drop objects. I used the following method to get the object: public void drag(){ transform.position = Input.mousePosition; } Problem: Accepting simultaneous ringtone...
asked by 30.10.2018 / 17:49
1
answer

How to make text stay in txt in complete unity

The idea is to create an entry where the user enters data and gets registered in txt and can add other data as a simple agenda. The screen asks: enter your name: Enter your age: Enter your city: Save in txt and then add another set of data. I...
asked by 27.09.2018 / 13:50
0
answers

My script can not reference my class in UNITY5 2D

I have the problem my script SelectScreenBase I can not reference my class PlayerBase I do not know why This the error: Assets / Scripts / MainMenu / SelectScreenManager.cs (112,16): error CS0246: The type or namespace name 'PlayerBase' could...
asked by 15.08.2018 / 19:34
1
answer

I can not access a class in another script in UNITY 2D

Hi, I'm having trouble calling PlayerBase and playerBase in another script This is the error that gives: Assets / Scripts / MainMenu / SelectScreenManager.cs (112,16): error CS0246: The type or namespace name 'PlayerBase' could not be found....
asked by 15.08.2018 / 00:58
0
answers

Jump Method with more than one animation sequence

Friends I'm messing with the leap animation of a character and this animation has two sequences, one of when to walk, another to run: if (Input.GetKeyDown(KeyCode.Space) && liberaPulo == true && Input.GetKey(KeyCode.D)...
asked by 16.04.2018 / 23:39
0
answers

Player Random audio and animation - Unity c #

Good morning. can someone help me I'm trying to do a random audio and synchronized animation but I'm not getting it. Any help is welcome. I know how to do with string and image, less with animation Script I made with String [Header("Min...
asked by 15.03.2018 / 15:48
0
answers

Where do I start to integrate my game with database?

I want my Mobile Game users to log in and save game information, as well as having the option to share some information (such as a created character) so that other users can download and but I'm not sure where to start, because from what I res...
asked by 28.12.2017 / 18:13
0
answers

Unity: distance with addforce

I'm creating a game where you apply a certain force on the block and it walks vertically and has to stop at a certain point and I want to do it for AddForce . However, on paper, I'm using the formula: distancia = velocidade ao quadrad...
asked by 22.09.2017 / 04:18