This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Vector2 MouseAxis | |
{ | |
get { return new Vector2(Input.GetAxis("Mouse X"), Input.GetAxis("Mouse Y")); } | |
} | |
if(usePanning && Input.GetKey(panningKey) && MouseAxis != Vector2.zero) | |
{ | |
Vector3 desiredMove; | |
if (!game2D) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using UnityEngine.Networking; | |
public class TextLoader : MonoBehaviour | |
{ | |
public string url = "http://www.dominio.com/arquivo.txt"; | |
public Text textUI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Vuforia; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ImageTargetPlayAudio : MonoBehaviour, ITrackableEventHandler | |
{ | |
public TrackableBehaviour mTrackableBehaviour; | |
void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Vuforia; | |
using UnityEngine; | |
using UnityEngine.Video; | |
public class StartVideoDynamic : MonoBehaviour, ITrackableEventHandler | |
{ | |
void Start() | |
{ | |
GetComponent<VideoPlayer>().enabled = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void StartZigZag() | |
{ | |
transform.Translate(Vector3.left * velocityMovimentEnemy * Time.deltaTime); | |
transform.Translate(Vector3.up * velocityMovimentEnemy * Time.deltaTime); | |
if (transform.position.y >= m_LimitDistanceMax) | |
{ | |
print("Start down"); | |
transform.Translate(Vector3.down * velocityMovimentEnemy * Time.deltaTime); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
public class GameManager : MonoBehaviour | |
{ | |
[SerializeField] | |
public PlayerJson playerJson; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using UnityEngine.UI; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class TextController : MonoBehaviour | |
{ | |
public Text currentText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
/// <summary> | |
/// Link de referencia para estudo: | |
/// https://unity3d.com/pt/learn/tutorials/topics/2d-game-creation/2d-physics-overview?playlist=17120 | |
/// </summary> | |
public class MyCharacterManager : MonoBehaviour | |
{ | |
[SerializeField] private float velocityMyCharacter = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
public class TestsAny : MonoBehaviour | |
{ | |
[SerializeField] private Text[] myComponentText; | |
[SerializeField] private int myInt = 0; | |
private void Update() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class Main : MonoBehaviour | |
{ | |
[Header("Sala:")] | |
public GameObject[] SalaButtons; |
OlderNewer