Escolar Documentos
Profissional Documentos
Cultura Documentos
GameObjects
Instanciando um Objeto em Tempo de Execuo
Exemplo 1:
using UnityEngine;
using System.Collections;
}
}
Exemplo 2:
using UnityEngine;
using System.Collections;
}
}
Exemplo 3:
using UnityEngine;
using System.Collections;
void Start()
{
GameObject go = (GameObject)Instantiate(Cubes, new Vector3(0, 0, 0),
transform.rotation);
}
void Update()
{
}
}
Explicao em Aula
Script CreateWall:
using UnityEngine;
using System.Collections;
void Start () {
createWall(altura, largura);
}
void Update () {