public void createFactory(GunFactory factory) { Debug.Log(factory); IGun c = factory.Create(); g_spawn.GetGun(c.ToString()); Debug.Log(c); }
public void createFactory(GunFactory factory) { GunRequirements textRequire = newText.GetComponent <GunRequirements>(); //Debug.Log(factory); IGun c = factory.Create(); //Debug.Log(c); g_spawn.GetGun(c.ToString()); //Debug.Log(c); textRequire.objectText.text = c.ToString(); }