# Prefabs sharing variables

**URL:** https://discussions.unity.com/t/prefabs-sharing-variables/63807
**Category:** Questions & Answers
**Created:** [February 20, 2013, 6:38pm UTC](https://discussions.unity.com/t/prefabs-sharing-variables/63807 "2013-02-20T18:38:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jessee03](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@jessee03](https://discussions.unity.com/u/jessee03)
#### Post date: [February 20, 2013, 6:38pm UTC](https://discussions.unity.com/t/prefabs-sharing-variables/63807/1 "2013-02-20T18:38:55Z")

</div>

For some reason it seems like each of my prefab enemies share the same variable. If I use Destroy(this.gameObject); it will destroy a single prefab but if I give all the enemies health and attack 1 enemy then all the other enemies will die when any other enemy dies. I want them all to have their own seperate scritps / variables. Is this possible?

---

<div class="post-metadata">

### Author: ![T27M](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/t27m/32/44248_2.png) [@T27M](https://discussions.unity.com/u/T27M)
#### Post date: [February 20, 2013, 6:57pm UTC](https://discussions.unity.com/t/prefabs-sharing-variables/63807/2 "2013-02-20T18:57:58Z")

</div>

Have you set any variables to static within the class?
