using UnityEngine;
using System.Collections;

public class CharacterCreation : MonoBehaviour {
public GameObject[] CharacterPrefabs;
private GameObject[] CharacterGameObject;
public UIInput NameInput;
private int length;
private int SelectIndex=0;
// Use this for initialization
void Start () {
length = CharacterPrefabs.Length;
CharacterGameObject = new GameObject[length];
for (int i = 0; i < length; i++)
{ 
CharacterGameObject[i]=GameObject.Instantiate(CharacterPrefabs[i],transform.position,transform.rotation)as GameObject;
}
showGameObject();


}

注意GameObject.Instantiate(游戏体的实例化),角色的选择

相关文章:

  • 2021-12-13
  • 2021-12-27
  • 2021-04-15
  • 2021-12-26
  • 2021-07-12
  • 2022-12-23
  • 2021-05-24
  • 2021-11-28
猜你喜欢
  • 2021-11-07
  • 2021-12-31
  • 2021-11-12
  • 2021-05-26
  • 2022-12-23
  • 2021-10-10
  • 2021-10-24
相关资源
相似解决方案