Object Pooler
public static Dictionary<string, List> pool = new Dictionary<string, List> ();
The Pooler contains some “bullets” to be fired.
Im activating an Object from the Pooler like this
PoolManager.pool [prefabName] .SetActive (true);
This activate a bullet
The Bullet has an
OnTriggerEnter()
The problem
Both the Player and the Enemies use the same Pool, but how do i tell the Bullet who shot it, so that Enemies dont shot eachother?
And how do i format Code on the forum?