Jump to content
Unity Insider Forum

Prefab mit Scriptable object als Datencontainer


chrische5
 Share

Recommended Posts

Hallo 

 

Ich bin gerade auf folgendes Problem gestoßen und weiß mir nicht recht zu helfen:

Ich habe ein Prefab und in diesem wird ein So als Satencontainer genutzt. Im Spiel werden nun mehrere dieser Prefabs instantiiert. Nun ist mir aufgefallen, dass dabei aber nicht auch der  Datencontainer neu erstellt wird, sondern sich alle Prefabs dies eine Datenquelle teilen. Das ist in meinem Fall doof, weil ich damit nur ein Gegner treffen muss, um bei allen Schaden anzurichten. 

 

Wie kann ich das umgehen?

 

Christoph

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...