The player object has a script attached to it which contain 3 public variables, representing three different weapons the player can use. The weapons are many different prefabs which will constantly change during runtime, so my question is how can I assign these weapon prefabs to the player at runtime (and access their scripts) when they don't technically exist yet?
↧