Beispiel #1
0
 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>();
     }
 }