36 lines
885 B
C#
36 lines
885 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class Resurrection : MonoBehaviour
|
|||
|
{
|
|||
|
|
|||
|
public List<GameObject> re = new List<GameObject>();//ʹ<><CAB9>list<73>洢<EFBFBD><E6B4A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>
|
|||
|
|
|||
|
private GameObject ga;
|
|||
|
// Start is called before the first frame update
|
|||
|
void Start()
|
|||
|
{
|
|||
|
ga =(GameObject)Resources.Load("Character/Capsule");//<2F><>resousce<63><65>Դ<EFBFBD>м<EFBFBD><D0BC><EFBFBD>npc
|
|||
|
Init();
|
|||
|
}
|
|||
|
|
|||
|
private void Init()
|
|||
|
{
|
|||
|
//for (int i = 0; i <3; i++)
|
|||
|
//{
|
|||
|
// GameObject instance = (GameObject)Instantiate(ga);//ʵ<><CAB5><EFBFBD><EFBFBD>npc
|
|||
|
// int a = Random.Range(0,5);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD>λ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// Vector3 va = re[a].transform.position; //<2F><><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>Ϣ
|
|||
|
// instance.transform.position = va;
|
|||
|
//}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|