자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public void SpawnObject(GameObject toSpawn, Vector3 position, Quaternion rotation) { spawnedObject = Instantiate(toSpawn, position, rotation); resourceService.AddActiveResource(spawnedObject); if (spawnedObject.tag.Equals("Player")) { Animator animator = spawnedObject.GetComponent <Animator>(); } }