Unity3d

생성

scarecrow1992 2022. 2. 21. 22:09

 

 

 

 

1
2
3
4
5
6
public Unit unit;
public Transform spawner;
 
public void Spawn(){
    Unit newUnit = Instantiate(unit, spawner.position, spawner.rotation) as Unit;
}
Colored by Color Scripter
cs

 

 

 

 

 

 

저작자표시 (새창열림)