-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAula.cs
51 lines (40 loc) · 1.46 KB
/
Aula.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Aula : MonoBehaviour
{
//PARA QUE QUALQUER VARIÁVEL FIQUE VISIVEL NA UNITY, É NECESSÁRIO NOMEA-LA COMO "public"
public int num, num2, result;
public float meio = 1.50f; // necessário o "f" para a unity entender // 6 numeros dps da virgula
public double comv = 1.30; // Suporta até 16 numeros apos a virgula
public string letra;
public Vector3 vetor3Dimenssion; // vetor tridimensional de 3 valores
public Vector2 vetor2Dimenssion; // vetor tridimensional de 3 valores
// A UNITY PERMITE DECLARAR TODOS SEUS COMPONENTES COMO SE FOSSEM VARIAVEIS
public GameObject objeto;
public Texture textura;
public ControlePlayer controle;
// Variavel que será acessada por todo e qualquer script **Variavel Estática**
public static int numero;
//função chamada uma unica vez, no inicio do game
void Start()
{
Camera cam = GetComponent<Camera>(); //A variavel cam recebe o componente camera
result = num + num2;
}
// Acontece o Tempo todo
void Update()
{
RaycastHit PontoDeColisao; //exemplo de variaveis locais/ Temporárias
}
//Função teste
void ControlarVida()
{
}
//metodo de checagem de colisão
private void OnTriggerEnter(Collider other) {
}
//criar botões na tela
private void OnGUI() {
}
}